flexnbd: Don't bind() unless a bind address is specified

This commit is contained in:
nick
2013-04-09 11:47:32 +01:00
parent 2bb8434128
commit 6984d3709e
2 changed files with 8 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ struct proxier {
/** address to bind to when making outgoing connections */
union mysockaddr connect_from;
int bind; /* Set to true if we should use it */
/* The socket we listen() on and accept() against */
int listen_fd;