From 60b357fb265ade3ddb136352cf6e753eeaded48e Mon Sep 17 00:00:00 2001 From: "vitalybuka@chromium.org" Date: Tue, 11 Feb 2014 02:22:41 +0000 Subject: Replace '.' with '_' in service name. Review URL: https://codereview.chromium.org/159343002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250288 0039d316-1c4b-4281-b951-d872f2087c98 --- cloud_print/gcp20/prototype/printer.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cloud_print') diff --git a/cloud_print/gcp20/prototype/printer.cc b/cloud_print/gcp20/prototype/printer.cc index e5828261..4765198 100644 --- a/cloud_print/gcp20/prototype/printer.cc +++ b/cloud_print/gcp20/prototype/printer.cc @@ -4,6 +4,7 @@ #include "cloud_print/gcp20/prototype/printer.h" +#include #include #include #include @@ -844,6 +845,8 @@ bool Printer::StartDnsServer() { std::string service_name_prefix = command_line_reader::ReadServiceNamePrefix(net::IPAddressToString(ip) + kServiceNamePrefixDefault); + std::replace(service_name_prefix .begin(), service_name_prefix .end(), + '.', '_'); std::string service_domain_name = command_line_reader::ReadDomainName( -- cgit v1.1