Reformat code

This commit is contained in:
世界
2026-08-30 17:41:46 +08:00
parent e4ec3b0345
commit ba4146ea31
30 changed files with 65 additions and 55 deletions
+3 -3
View File
@@ -250,16 +250,16 @@ func (e remoteEndpoint) SrcToString() string {
}
func (e remoteEndpoint) DstToString() string {
return (netip.AddrPort)(e).String()
return netip.AddrPort(e).String()
}
func (e remoteEndpoint) DstToBytes() []byte {
b, _ := (netip.AddrPort)(e).MarshalBinary()
b, _ := netip.AddrPort(e).MarshalBinary()
return b
}
func (e remoteEndpoint) DstIP() netip.Addr {
return (netip.AddrPort)(e).Addr()
return netip.AddrPort(e).Addr()
}
func (e remoteEndpoint) SrcIP() netip.Addr {