From c886e27774d685b3b0fb20e50b58a37ca0cf5053 Mon Sep 17 00:00:00 2001 From: Izaya Date: Tue, 17 Apr 2018 01:09:16 +1000 Subject: [PATCH] changed vtunnel parsing of addresses --- vTunnel/OpenOS/etc/rc.d/vtunnel.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vTunnel/OpenOS/etc/rc.d/vtunnel.lua b/vTunnel/OpenOS/etc/rc.d/vtunnel.lua index afa817a..344ff9c 100644 --- a/vTunnel/OpenOS/etc/rc.d/vtunnel.lua +++ b/vTunnel/OpenOS/etc/rc.d/vtunnel.lua @@ -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