修复 examples 中的参数错误 (#315)

* return if error does not nil

* [fixed][examples] 修复 examples 中的参数错误
This commit is contained in:
recall704
2018-11-03 11:01:48 +08:00
committed by ginuerzh
parent 84dc5a612e
commit fa085c56e5
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -44,7 +44,6 @@ func main() {
},
)
s := &gost.Server{}
ln, err := gost.TCPListener(laddr)
if err != nil {
log.Fatal(err)
@@ -53,7 +52,8 @@ func main() {
gost.ChainHandlerOption(chain),
gost.TLSConfigHandlerOption(tlsConfig()),
)
log.Fatal(s.Serve(ln, h))
s := &gost.Server{ln}
log.Fatal(s.Serve(h))
}
var (