Browse Source
Merge pull request #2762 from thesamhurwitz/manager-iface-option
Fix manager not passing -i option
pull/2773/head
Max Lv
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
src/manager.c
|
|
@ -186,6 +186,10 @@ construct_command_line(struct manager_ctx *manager, struct server *server) |
|
|
|
int len = strlen(cmd); |
|
|
|
snprintf(cmd + len, BUF_SIZE - len, " -u"); |
|
|
|
} |
|
|
|
if (manager->iface) { |
|
|
|
int len = strlen(cmd); |
|
|
|
snprintf(cmd + len, BUF_SIZE - len, " -i \"%s\"", manager->iface); |
|
|
|
} |
|
|
|
if (server->fast_open[0] == 0 && manager->fast_open) { |
|
|
|
int len = strlen(cmd); |
|
|
|
snprintf(cmd + len, BUF_SIZE - len, " --fast-open"); |
|
|
|