浏览代码

i don't think this is used at all anymore (#323)

Ryan Huber 4 年之前
父节点
当前提交
43a3988afc
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      hostmap.go

+ 1 - 3
hostmap.go

@@ -64,8 +64,7 @@ type cachedPacket struct {
 type packetCallback func(t NebulaMessageType, st NebulaMessageSubType, h *HostInfo, p, nb, out []byte)
 
 type HostInfoDest struct {
-	active bool
-	addr   *udpAddr
+	addr *udpAddr
 	//probes       [ProbeLen]bool
 	probeCounter int
 }
@@ -675,7 +674,6 @@ func NewHostInfoDest(addr *udpAddr) *HostInfoDest {
 
 func (hid *HostInfoDest) MarshalJSON() ([]byte, error) {
 	return json.Marshal(m{
-		"active":      hid.active,
 		"address":     hid.addr,
 		"probe_count": hid.probeCounter,
 	})