mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +00:00
Change receiver type, add GoStringer
This commit is contained in:
parent
fcd6ebb06e
commit
37ad20a71b
@ -52,10 +52,14 @@ type SessionInvitation struct {
|
||||
ServerSocket bool
|
||||
}
|
||||
|
||||
func (i *SessionInvitation) String() string {
|
||||
func (i SessionInvitation) String() string {
|
||||
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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user