File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ if dcsbot.UDPSendSocket == nil then
2525 package.cpath = package.cpath .. " ;.\\ LuaSocket\\ ?.dll;"
2626 local socket = require (" socket" )
2727 dcsbot .UDPSendSocket = socket .udp ()
28+ dcsbot .UDPSendSocket :settimeout (0 )
2829 dcsbot .UDPSendSocket :setsockname (" *" , 0 )
2930end
3031
Original file line number Diff line number Diff line change @@ -24,7 +24,12 @@ local config = require('DCSServerBotConfig')
2424package.path = package.path .. " ;.\\ LuaSocket\\ ?.lua;"
2525package.cpath = package.cpath .. " ;.\\ LuaSocket\\ ?.dll;"
2626local socket = require (" socket" )
27- UDPSendSocket = socket .udp ()
27+
28+ if UDPSendSocket == nil then
29+ UDPSendSocket = socket .udp ()
30+ UDPSendSocket :settimeout (0 )
31+ UDPSendSocket :setsockname (" *" , 0 )
32+ end
2833
2934-- this is the DCS server name
3035server_name = nil
You can’t perform that action at this time.
0 commit comments