Prevent nil LocalAddr or RemoteAddr

This commit is contained in:
世界
2023-12-05 15:10:51 +08:00
parent 9abd513f17
commit c2c7d4382b
2 changed files with 4 additions and 3 deletions

View File

@@ -143,7 +143,7 @@ func (c *GunConn) LocalAddr() net.Addr {
}
func (c *GunConn) RemoteAddr() net.Addr {
return nil
return M.Socksaddr{}
}
func (c *GunConn) SetDeadline(t time.Time) error {