mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
general: fixed a bug which leads to panic when the specified interface not exists
This commit is contained in:
1 parent
72e57ab6e3
commit
7f85f664e3
11 files changed
+27
-39
No files matched your search
@@ -94,6 +94,7 @@ func (s *SmuxServer) Serve(c net.Conn) {
|
||||
}
|
||||
}
|
||||
|
||||
// ServeStream serves a smux stream.
|
||||
func (s *SmuxServer) ServeStream(c *smux.Stream) {
|
||||
if s.server != nil {
|
||||
s.server.Serve(c)
|
||||
|
||||
Reference in new issue
Block a user