Skip to content

Commit

Permalink
Merge pull request shadowsocks#2762 from thesamhurwitz/manager-iface-…
Browse files Browse the repository at this point in the history
…option

Fix manager not passing -i option
  • Loading branch information
madeye authored Oct 19, 2020
2 parents b5d6225 + 72db525 commit 89b5f98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 89b5f98

Please sign in to comment.