]> git.kaiwu.me - nginx.git/commitdiff
Fixed "setfib=" on non-first listening socket.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 3 Dec 2013 17:44:08 +0000 (21:44 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 3 Dec 2013 17:44:08 +0000 (21:44 +0400)
src/http/ngx_http_core_module.c

index d2e29136d0143282434f325a1c386151dbbf8793..4e5c78e9b1492a50fe60d2fe964770e3ca7aa836 100644 (file)
@@ -4015,6 +4015,8 @@ ngx_http_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
 #if (NGX_HAVE_SETFIB)
         if (ngx_strncmp(value[n].data, "setfib=", 7) == 0) {
             lsopt.setfib = ngx_atoi(value[n].data + 7, value[n].len - 7);
+            lsopt.set = 1;
+            lsopt.bind = 1;
 
             if (lsopt.setfib == NGX_ERROR) {
                 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,