+1
-1
@@ -1849,7 +1849,7 @@ func connectionDetailsFields(infos []*types.ICEConnectionInfo) []interface{} {
|
|||||||
if !isPrivate && len(remoteAddress) > minIPTruncateLen {
|
if !isPrivate && len(remoteAddress) > minIPTruncateLen {
|
||||||
remoteAddress = remoteAddress[:len(remoteAddress)-3] + "..."
|
remoteAddress = remoteAddress[:len(remoteAddress)-3] + "..."
|
||||||
}
|
}
|
||||||
cStr += " " + fmt.Sprintf("%s %s %s:%d", c.Remote.NetworkType(), c.Remote.Type(), c.Remote.Address(), c.Remote.Port())
|
cStr += " " + fmt.Sprintf("%s %s %s:%d", c.Remote.NetworkType(), c.Remote.Type(), remoteAddress, c.Remote.Port())
|
||||||
if relatedAddress := c.Remote.RelatedAddress(); relatedAddress != nil {
|
if relatedAddress := c.Remote.RelatedAddress(); relatedAddress != nil {
|
||||||
ipAddr = net.ParseIP(relatedAddress.Address)
|
ipAddr = net.ParseIP(relatedAddress.Address)
|
||||||
if ipAddr != nil {
|
if ipAddr != nil {
|
||||||
|
|||||||
@@ -152,6 +152,10 @@ func (w wrappedICECandidatePairLogger) MarshalLogObject(e zapcore.ObjectEncoder)
|
|||||||
e.AddString("remoteCandidateType", w.pair.Remote.Typ.String())
|
e.AddString("remoteCandidateType", w.pair.Remote.Typ.String())
|
||||||
e.AddString("remoteAdddress", w.pair.Remote.Address[:len(w.pair.Remote.Address)-3]+"...")
|
e.AddString("remoteAdddress", w.pair.Remote.Address[:len(w.pair.Remote.Address)-3]+"...")
|
||||||
e.AddUint16("remotePort", w.pair.Remote.Port)
|
e.AddUint16("remotePort", w.pair.Remote.Port)
|
||||||
|
if w.pair.Remote.RelatedAddress != "" {
|
||||||
|
e.AddString("relatedAdddress", w.pair.Remote.RelatedAddress[:len(w.pair.Remote.RelatedAddress)-3]+"...")
|
||||||
|
e.AddUint16("relatedPort", w.pair.Remote.RelatedPort)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user