Skip to content

Commit

Permalink
prefer ipv6 for ltm
Browse files Browse the repository at this point in the history
  • Loading branch information
stronnag committed Apr 11, 2021
1 parent b9efb2d commit ac4f6ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ltmgen/msgdev.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ func NewMSPSerial(device string, baud int) *MSPSerial {
var err error
dd := check_device(device, baud)
if dd.name == "" {
laddr, err = net.ResolveUDPAddr("udp", fmt.Sprintf("%s:%d", dd.name, dd.param))
laddr, err = net.ResolveUDPAddr("udp6", fmt.Sprintf("%s:%d", dd.name, dd.param))
} else {
raddr, err = net.ResolveUDPAddr("udp", fmt.Sprintf("%s:%d", dd.name, dd.param))
raddr, err = net.ResolveUDPAddr("udp6", fmt.Sprintf("%s:%d", dd.name, dd.param))
}
if err == nil {
conn, err = net.DialUDP("udp6", laddr, raddr)
Expand Down

0 comments on commit ac4f6ea

Please sign in to comment.