Просмотр исходного кода

update:exnetif 扩展库判断下close_all函数被,兼容老固件。

wjq 3 месяцев назад
Родитель
Сommit
96e43b8d10
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      script/libs/exnetif.lua

+ 1 - 1
script/libs/exnetif.lua

@@ -94,7 +94,7 @@ local function apply_priority()
                 log.info("设置网卡", type_to_string(net_type))
                 states_cbfnc(type_to_string(net_type), net_type) -- 默认网卡改变的回调函数
                 socket.dft(net_type)
-                if auto_socket_switch then
+                if auto_socket_switch and socket.close_all then
                     socket.close_all(current_active)
                 end
                 current_active = net_type