summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-03 18:26:48 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-03 18:26:48 +0300
commit33e4f2773b43a04b388a5769d65d9173acdc992d (patch)
tree079605f8be0d501022846a371a503f7e6300a519 /src/common
parentdf05163715bd33dfe7a50d1f68f0ed997b281923 (diff)
downloadhercules-33e4f2773b43a04b388a5769d65d9173acdc992d.tar.gz
hercules-33e4f2773b43a04b388a5769d65d9173acdc992d.tar.bz2
hercules-33e4f2773b43a04b388a5769d65d9173acdc992d.tar.xz
hercules-33e4f2773b43a04b388a5769d65d9173acdc992d.zip
Add into travis configure option --enable-buildbot.
Also disable all known default warnings if build bot option enabled.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index 75b6128b6..60759d0bb 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -1752,10 +1752,12 @@ void socket_net_config_read(const char *filename)
ShowError("No allowed server IP ranges configured. This server won't be able to accept connections from any char servers.\n");
}
ARR_FIND(0, VECTOR_LENGTH(sockt->allowed_ips), i, SUBNET_MATCH(0, VECTOR_INDEX(sockt->allowed_ips, i).ip, VECTOR_INDEX(sockt->allowed_ips, i).mask));
+#ifndef BUILDBOT
if (i != VECTOR_LENGTH(sockt->allowed_ips)) {
ShowWarning("Using a wildcard IP range in the allowed server IPs is NOT RECOMMENDED.\n");
ShowNotice("Please edit your '%s' allowed list to fit your network configuration.\n", filename);
}
+#endif
libconfig->destroy(&network_config);
return;
}