mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 17:17:33 +00:00
add: allow 'ws' for private ip
This commit is contained in:
parent
8078456b2a
commit
12a017630c
|
@ -24,7 +24,8 @@ end
|
|||
require("gwsockets")
|
||||
|
||||
local function getWebSocketURL()
|
||||
return "wss://" .. gmInte.config.websocketFQDN
|
||||
local method = gmInte.isPrivateIP(gmInte.config.websocketFQDN) && "ws" || "wss"
|
||||
return method .. "://" .. gmInte.config.websocketFQDN
|
||||
end
|
||||
|
||||
local socket = GWSockets.createWebSocket(getWebSocketURL())
|
||||
|
|
Loading…
Reference in New Issue
Block a user