diff options
author | Haru <haru@dotalux.com> | 2016-07-03 19:47:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-03 19:47:38 +0200 |
commit | d2f666fc10eac20f70729176c088b2c81d233531 (patch) | |
tree | 55902d4e252f365f511137d4022670ccfad59a62 /src/common | |
parent | 6fbc00f9454d33caf79f89708cab9e46ec996eeb (diff) | |
parent | 7b350fbf497d737c12cc03ddd888bb6a0ee486e4 (diff) | |
download | hercules-d2f666fc10eac20f70729176c088b2c81d233531.tar.gz hercules-d2f666fc10eac20f70729176c088b2c81d233531.tar.bz2 hercules-d2f666fc10eac20f70729176c088b2c81d233531.tar.xz hercules-d2f666fc10eac20f70729176c088b2c81d233531.zip |
Merge pull request #1336 from 4144/travisext
Different travis extensions
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/showmsg.h | 4 | ||||
-rw-r--r-- | src/common/socket.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/common/showmsg.h b/src/common/showmsg.h index 7b48d0df2..303c8dd28 100644 --- a/src/common/showmsg.h +++ b/src/common/showmsg.h @@ -130,7 +130,11 @@ struct showmsg_interface { #define ShowSQL(fmt, ...) (showmsg->showSQL((fmt), ##__VA_ARGS__)) #define ShowInfo(fmt, ...) (showmsg->showInfo((fmt), ##__VA_ARGS__)) #define ShowNotice(fmt, ...) (showmsg->showNotice((fmt), ##__VA_ARGS__)) +#ifdef BUILDBOT +#define ShowWarning(fmt, ...) (showmsg->showError((fmt), ##__VA_ARGS__)) +#else // BUILDBOT #define ShowWarning(fmt, ...) (showmsg->showWarning((fmt), ##__VA_ARGS__)) +#endif // BUILDBOT #define ShowDebug(fmt, ...) (showmsg->showDebug((fmt), ##__VA_ARGS__)) #define ShowError(fmt, ...) (showmsg->showError((fmt), ##__VA_ARGS__)) #define ShowFatalError(fmt, ...) (showmsg->showFatalError((fmt), ##__VA_ARGS__)) 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; } |