mirror of
https://github.com/net-byte/vtun
synced 2024-03-14 10:50:03 +08:00
update
This commit is contained in:
parent
f0f60ef070
commit
d1f510e9e8
5
scripts/wsserver.sh
Normal file
5
scripts/wsserver.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!bin/bash
|
||||
|
||||
sudo killall vtun
|
||||
sudo ./bin/vtun -S -l=:3001 -c=172.16.0.1/24 -p=ws &
|
||||
echo "started!"
|
@ -55,7 +55,7 @@ func StartWSServer(config config.Config) {
|
||||
io.WriteString(w, resp)
|
||||
})
|
||||
|
||||
http.ListenAndServe(config.ServerAddr, nil)
|
||||
http.ListenAndServe(config.LocalAddr, nil)
|
||||
}
|
||||
|
||||
func tunToWs(iface *water.Interface, c *cache.Cache) {
|
||||
|
Loading…
Reference in New Issue
Block a user