From 318b9c685747fb1728266a44c19d83896567092b Mon Sep 17 00:00:00 2001 From: Izaya Date: Mon, 16 Apr 2018 10:13:40 +1000 Subject: [PATCH] Fixed some docs, made the bridge use less CPU time --- vTunnel/README.md | 10 +++------- vTunnel/bridge.lua | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/vTunnel/README.md b/vTunnel/README.md index 9d73ea9..12ab692 100644 --- a/vTunnel/README.md +++ b/vTunnel/README.md @@ -49,11 +49,7 @@ This will create a virtual linked card component connected to server\_address:se #### Minitel configuration 1. Disable minitel with rc - `rc minitel disable` -1. Enable vtunnel with rc - `rc vtunnel enable` -2. Add the following to your ~/.shrc: +2. Enable vtunnel with rc - `rc vtunnel enable` +3. Enable minitel with rc - `rc minitel enable` -``` -rc minitel start > /dev/null -``` - -This will ensure that Minitel sees the virtual tunnel component created by vTunnel and routes packets via it. +This will ensure that Minitel starts later than vTunnel, allowing it to see the virtual tunnel component. diff --git a/vTunnel/bridge.lua b/vTunnel/bridge.lua index 9af2740..9424fb9 100644 --- a/vTunnel/bridge.lua +++ b/vTunnel/bridge.lua @@ -42,7 +42,7 @@ hasValidPacket("") function socketLoop() local server = socket.bind("*", port) - server:settimeout(0) + server:settimeout(0.01) print("vTunnel bridge server listening on port "..tostring(port)) while true do local client,err = server:accept()