Skip to content

Commit

Permalink
Use ; to seperate fields in address instead of :.
Browse files Browse the repository at this point in the history
Now that IPV6 is more and more common use a semicolon instead
of a colon as seperator for the different fields of an address.
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 3565d3d commit 07aff26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/address_conf.c
Expand Up @@ -197,11 +197,11 @@ const char *IPADDR::build_address_str(char *buf, int blen, bool print_port/*=tru
{
char tmp[1024];
if (print_port) {
bsnprintf(buf, blen, "host[%s:%s:%hu] ",
bsnprintf(buf, blen, "host[%s;%s;%hu] ",
get_family() == AF_INET ? "ipv4" : "ipv6",
get_address(tmp, sizeof(tmp) - 1), get_port_host_order());
} else {
bsnprintf(buf, blen, "host[%s:%s] ",
bsnprintf(buf, blen, "host[%s;%s] ",
get_family() == AF_INET ? "ipv4" : "ipv6",
get_address(tmp, sizeof(tmp) - 1));

Expand Down

0 comments on commit 07aff26

Please sign in to comment.