mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 12:42:27 +08:00
fix: ensure return a nil interface not an interface with nil value
This commit is contained in:
parent
cc3a9dd553
commit
b9e63d3f7d
@ -306,6 +306,9 @@ func (wsedc *websocketWithEarlyDataConn) LazyHeadroom() bool {
|
||||
}
|
||||
|
||||
func (wsedc *websocketWithEarlyDataConn) Upstream() any {
|
||||
if wsedc.Conn == nil { // ensure return a nil interface not an interface with nil value
|
||||
return nil
|
||||
}
|
||||
return wsedc.Conn
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user