mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-12-26 10:18:07 +11:00
changed vtunnel parsing of addresses
This commit is contained in:
parent
318b9c6857
commit
c886e27774
@ -14,9 +14,10 @@ local socket
|
||||
local keepalive = 30
|
||||
local katimer
|
||||
|
||||
function start(iaddr,port)
|
||||
function start(faddr)
|
||||
if listener then return end
|
||||
iaddr,port = iaddr or "shadowkat.net", tonumber(port) or 4096
|
||||
local host,nport = faddr:match("(.+):(%d+)")
|
||||
local iaddr,port = host or faddr or "shadowkat.net", tonumber(nport) or 4096
|
||||
socket = internet.connect(iaddr,port)
|
||||
print("Connecting to "..iaddr..":"..tostring(port).."...")
|
||||
repeat
|
||||
|
Loading…
Reference in New Issue
Block a user