Skip to content

Commit

Permalink
Fixed foreign server address containing interface name
Browse files Browse the repository at this point in the history
  • Loading branch information
UnAfraid committed Jun 21, 2023
1 parent c1ef9e1 commit a7c5d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wg/interface_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func findForeignInterfaces(knownInterfaces []string) (foreignInterfaces []Foreig

var addresses []string
for _, addr := range addrList {
addresses = append(addresses, addr.String())
addresses = append(addresses, addr.IPNet.String())
}

foreignInterfaces = append(foreignInterfaces, ForeignInterface{
Expand Down

0 comments on commit a7c5d62

Please sign in to comment.