Ver Fonte

fix: dhcpsrv的dns地址的opt code写错了呢

Wendal Chen há 1 ano atrás
pai
commit
8bdb945a1c
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      script/libs/dhcpsrv.lua

+ 2 - 2
script/libs/dhcpsrv.lua

@@ -141,9 +141,9 @@ local function dhcp_send_x(srv, pkg, client, msgtype)
     table.insert(pkg.opts, {3, string.char(srv.opts.gw[1], srv.opts.gw[2], srv.opts.gw[3], srv.opts.gw[4])})
     table.insert(pkg.opts, {51, "\x00\x00\x1E\x00"}) -- 7200秒, 大概
     table.insert(pkg.opts, {54, string.char(srv.opts.gw[1], srv.opts.gw[2], srv.opts.gw[3], srv.opts.gw[4])})
+    table.insert(pkg.opts, {6, string.char(223, 5, 5, 5)})
+    table.insert(pkg.opts, {6, string.char(119, 29, 29, 29)})
     table.insert(pkg.opts, {6, string.char(srv.opts.gw[1], srv.opts.gw[2], srv.opts.gw[3], srv.opts.gw[4])})
-    table.insert(pkg.opts, {5, string.char(223, 5, 5, 5)})
-    table.insert(pkg.opts, {5, string.char(119, 29, 29, 29)})
 
     dhcp_encode(pkg, buff)