improve closeup

This commit is contained in:
idk 2018-12-25 03:41:51 -05:00
parent 179b25e01c
commit beca8fff5a
No known key found for this signature in database
GPG key ID: D75C03B39B5E14E1
7 changed files with 30 additions and 2 deletions

View file

@ -2,6 +2,7 @@ package main
import (
"flag"
"log"
"os"
"os/signal"
"strings"
@ -141,7 +142,9 @@ func main() {
go func() {
for sig := range c {
if sig == os.Interrupt {
//tunsocks.Cleanup()
if err := tunsocks.Cleanup(); nil {
log.Println(err.Error())
}
}
}
}()
@ -149,5 +152,4 @@ func main() {
} else {
panic(tunerr)
}
}