From 75b5d832ca9c2d8a06be483de5b2afb8886c6c9f Mon Sep 17 00:00:00 2001 From: Izaya Date: Tue, 17 Apr 2018 01:16:03 +1000 Subject: [PATCH] made the parsing not die with no input --- vTunnel/OpenOS/etc/rc.d/vtunnel.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vTunnel/OpenOS/etc/rc.d/vtunnel.lua b/vTunnel/OpenOS/etc/rc.d/vtunnel.lua index 344ff9c..3dc6398 100644 --- a/vTunnel/OpenOS/etc/rc.d/vtunnel.lua +++ b/vTunnel/OpenOS/etc/rc.d/vtunnel.lua @@ -16,7 +16,9 @@ local katimer function start(faddr) if listener then return end - local host,nport = faddr:match("(.+):(%d+)") + if faddr then + local host,nport = faddr:match("(.+):(%d+)") + end local iaddr,port = host or faddr or "shadowkat.net", tonumber(nport) or 4096 socket = internet.connect(iaddr,port) print("Connecting to "..iaddr..":"..tostring(port).."...")