mirror of
https://github.com/go-gost/gost.git
synced 2026-10-08 12:05:46 +00:00
fix issue #206
This commit is contained in:
+1
-2
@@ -98,9 +98,8 @@ func (p *program) Start() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer s.Close()
|
||||
|
||||
go func() {
|
||||
defer s.Close()
|
||||
log.Info("api service on ", s.Addr())
|
||||
log.Fatal(s.Serve())
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user