Fix shadowsocksr build

This commit is contained in:
世界 2023-04-16 22:43:30 +08:00
parent de1b5971e1
commit 5e6e7923e4
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -127,7 +127,7 @@ func (h *ShadowsocksR) DialContext(ctx context.Context, network string, destinat
if err != nil {
return nil, err
}
return &bufio.BindPacketConn{PacketConn: conn, Addr: destination}, nil
return bufio.NewBindPacketConn(conn, destination), nil
default:
return nil, E.Extend(N.ErrUnknownNetwork, network)
}