improve closeup
This commit is contained in:
parent
179b25e01c
commit
beca8fff5a
7 changed files with 30 additions and 2 deletions
6
main.go
6
main.go
|
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue