mirror of
https://github.com/octoleo/syncthing.git
synced 2025-04-10 19:41:50 +00:00
Change receiver type, add GoStringer
This commit is contained in:
parent
2505f82ce5
commit
e97f75cad5
@ -52,10 +52,14 @@ type SessionInvitation struct {
|
|||||||
ServerSocket bool
|
ServerSocket bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *SessionInvitation) String() string {
|
func (i SessionInvitation) String() string {
|
||||||
return fmt.Sprintf("%s@%s", syncthingprotocol.DeviceIDFromBytes(i.From), i.AddressString())
|
return fmt.Sprintf("%s@%s", syncthingprotocol.DeviceIDFromBytes(i.From), i.AddressString())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *SessionInvitation) AddressString() string {
|
func (i SessionInvitation) GoString() string {
|
||||||
|
return i.String()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i SessionInvitation) AddressString() string {
|
||||||
return fmt.Sprintf("%s:%d", net.IP(i.Address), i.Port)
|
return fmt.Sprintf("%s:%d", net.IP(i.Address), i.Port)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user