Added use_loopback option

FossilOrigin-Name: 22cca206f71eb1bba4c9b7ec169c6776e80711ffa2374380b8da3df5f88c9177
This commit is contained in:
7u83@mail.ru 2016-03-07 10:16:48 +00:00
parent 1701836ddc
commit b0dc7f0b61
2 changed files with 10 additions and 2 deletions

View File

@ -91,6 +91,15 @@
# image_dir=/tftpboot
# use_loopback
#
# Let AC-Tube also listen on loopback interfaces in auto-detect mode.
# Turning this option on makes possibly only sense for some testing purpose.
#
# Default:
# use_loopback = off
# ---------------------------------------------------
# Network related

View File

@ -402,8 +402,6 @@ static int init_listen_addrs()
if (ifa->ifa_addr->sa_family == AF_INET6 && conf_ipv6) {
sock_addrtostr(ifa->ifa_addr, str, 100,0);
// printf("The converter has %s\n",str);
if (strncmp(str, "fe80:", 5) == 0) {
strcat(str, "%");
strcat(str, ifa->ifa_name);
@ -738,6 +736,7 @@ int read_config(const char *filename)
CFG_SIMPLE_BOOL("strict_capwap", &conf_strict_capwap),
CFG_SIMPLE_BOOL("strict_headers", &conf_strict_headers),
CFG_SIMPLE_BOOL("use_loopback", &conf_use_loopback),
CFG_SIMPLE_STR("capwap_mode", &conf_capwap_mode_str),