session names

This commit is contained in:
idk 2018-12-25 03:46:42 -05:00
parent 226d7ca893
commit 55a78dce12
No known key found for this signature in database
GPG key ID: D75C03B39B5E14E1
2 changed files with 1 additions and 9 deletions

View file

@ -64,11 +64,3 @@ func NewConn(sam *sam3.SAM, addr, path string, opts []string) (*Conn, error) {
}
return &c, nil
}
func GenConn(sam *sam3.SAM, addr, path string, opts []string) *Conn {
c, err := NewConn(sam, addr, path, opts)
if err != nil {
panic(err)
}
return c
}

View file

@ -142,7 +142,7 @@ func main() {
go func() {
for sig := range c {
if sig == os.Interrupt {
if err := tunsocks.Cleanup(); nil {
if err := tunsocks.Cleanup(); err != nil {
log.Println(err.Error())
}
}