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 aeccb78 commit b9efb2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ltmgen/msgdev.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func NewMSPSerial(device string, baud int) *MSPSerial {
raddr, err = net.ResolveUDPAddr("udp", fmt.Sprintf("%s:%d", dd.name, dd.param))
}
if err == nil {
conn, err = net.DialUDP("udp", laddr, raddr)
conn, err = net.DialUDP("udp6", laddr, raddr)
if err == nil {
reader = bufio.NewReader(conn)
}
Expand Down

0 comments on commit b9efb2d

Please sign in to comment.