projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a cli_bind_address configuration option.
[l2tpns.git]
/
cli.c
diff --git
a/cli.c
b/cli.c
index
8377339
..
9433106
100644
(file)
--- a/
cli.c
+++ b/
cli.c
@@
-283,6
+283,7
@@
void init_cli(char *hostname)
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)
{