# HG changeset patch # User rubidium # Date 1239383806 0 # Node ID 6e294b4b7f56923a430c80a671824debfb3da054 # Parent c8133174cf71ba174a9292c6f108657d520154fb (svn r16018) -Fix (r16014): properly escape IPv6 style ([::]) addresses so they aren't seen as new groups. diff --git a/src/ini.cpp b/src/ini.cpp --- a/src/ini.cpp +++ b/src/ini.cpp @@ -283,7 +283,8 @@ if (item->comment != NULL) fputs(item->comment, f); /* protect item->name with quotes if needed */ - if (strchr(item->name, ' ') != NULL) { + if (strchr(item->name, ' ') != NULL || + item->name[0] == '[') { fprintf(f, "\"%s\"", item->name); } else { fprintf(f, "%s", item->name); diff --git a/src/settings.cpp b/src/settings.cpp --- a/src/settings.cpp +++ b/src/settings.cpp @@ -80,6 +80,7 @@ "bans", "newgrf", "servers", + "server_bind_addresses", NULL };