summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d48de5f)
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
fcntl(clifd, F_SETFL, flags | O_NONBLOCK);
}
addr.sin_family = AF_INET;
fcntl(clifd, F_SETFL, flags | O_NONBLOCK);
}
addr.sin_family = AF_INET;
+ addr.sin_addr.s_addr = config->cli_bind_address; /* defaults to INADDR_ANY */
addr.sin_port = htons(23);
if (bind(clifd, (void *) &addr, sizeof(addr)) < 0)
{
addr.sin_port = htons(23);
if (bind(clifd, (void *) &addr, sizeof(addr)) < 0)
{
# Listen address for L2TP
#set bind_address 1.1.1.1
# Listen address for L2TP
#set bind_address 1.1.1.1
+# Listen address for CLI
+#set cli_bind_address 1.1.1.1
+
# Send a gratiuitous ARP for bind address
#set send_garp no
# Send a gratiuitous ARP for bind address
#set send_garp no
CONFIG("cluster_hb_timeout", cluster_hb_timeout, INT),
CONFIG("cluster_master_min_adv", cluster_master_min_adv, INT),
CONFIG("ipv6_prefix", ipv6_prefix, IPv6),
CONFIG("cluster_hb_timeout", cluster_hb_timeout, INT),
CONFIG("cluster_master_min_adv", cluster_master_min_adv, INT),
CONFIG("ipv6_prefix", ipv6_prefix, IPv6),
+ CONFIG("cli_bind_address", cli_bind_address, IPv4),
int cluster_master_min_adv; // Master advertises routes while the number of up to date
// slaves is less than this value.
int cluster_master_min_adv; // Master advertises routes while the number of up to date
// slaves is less than this value.
+ in_addr_t cli_bind_address; // bind address for CLI
// Guest change
char guest_user[MAXUSER]; // Guest account username
// Guest change
char guest_user[MAXUSER]; // Guest account username