File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ type PeerEntry struct {
24
24
PublicKey string `json:"key"`
25
25
Port uint64 `json:"port"`
26
26
Priority uint64 `json:"priority"`
27
- Multipath bool `json:"multipath"`
27
+ Multipath bool `json:"multipath,omitempty "`
28
28
RXBytes DataUnit `json:"bytes_recvd,omitempty"`
29
29
TXBytes DataUnit `json:"bytes_sent,omitempty"`
30
30
Uptime float64 `json:"uptime,omitempty"`
Original file line number Diff line number Diff line change @@ -22,8 +22,11 @@ func isMPTCP(c net.Conn) bool {
22
22
mp , _ := tc .MultipathTCP ()
23
23
return mp
24
24
case * tls.Conn :
25
- mp , _ := tc .NetConn ().(* net.TCPConn ).MultipathTCP ()
26
- return mp
25
+ if tc , ok := tc .NetConn ().(* net.TCPConn ); ok {
26
+ mp , _ := tc .MultipathTCP ()
27
+ return mp
28
+ }
29
+ return false
27
30
default :
28
31
return false
29
32
}
You can’t perform that action at this time.
0 commit comments