ソースを参照

Do not fail users without argument

z3APA3A 5 年 前
コミット
ff67464aa1
2 ファイル変更2 行追加2 行削除
  1. 1 1
      scripts/3proxy.cfg
  2. 1 1
      src/conf.c

+ 1 - 1
scripts/3proxy.cfg

@@ -9,7 +9,7 @@ log /logs/3proxy-%y%m%d.log D
 rotate 60
 counter /count/3proxy.3cf
 
-users $/conf/passwd 
+users $/conf/passwd
 
 include /conf/counters
 include /conf/bandlimiters

+ 1 - 1
src/conf.c

@@ -1532,7 +1532,7 @@ struct commands commandhandlers[]={
 	{commandhandlers+20, "logformat", h_logformat, 2, 2},
 	{commandhandlers+21, "timeouts", h_timeouts, 2, 0},
 	{commandhandlers+22, "auth", h_auth, 2, 0},
-	{commandhandlers+23, "users", h_users, 2, 0},
+	{commandhandlers+23, "users", h_users, 1, 0},
 	{commandhandlers+24, "maxconn", h_maxconn, 2, 2},
 	{commandhandlers+25, "flush", h_flush, 1, 1},
 	{commandhandlers+26, "nserver", h_nserver, 2, 2},