Browse Source

remove debug items

0xdcarns 2 years ago
parent
commit
2da7d7242f
2 changed files with 0 additions and 2 deletions
  1. 0 1
      logic/hosts.go
  2. 0 1
      models/api_host.go

+ 0 - 1
logic/hosts.go

@@ -180,7 +180,6 @@ func UpdateHostFromClient(newHost, currHost *models.Host) (sendPeerUpdate bool)
 	}
 	}
 	if len(newHost.NatType) > 0 && newHost.NatType != currHost.NatType {
 	if len(newHost.NatType) > 0 && newHost.NatType != currHost.NatType {
 		currHost.NatType = newHost.NatType
 		currHost.NatType = newHost.NatType
-		logger.Log(0, "updated host nat type", newHost.Name, newHost.NatType)
 		sendPeerUpdate = true
 		sendPeerUpdate = true
 	}
 	}
 
 

+ 0 - 1
models/api_host.go

@@ -33,7 +33,6 @@ type ApiHost struct {
 	RelayedBy        string   `json:"relayed_by" bson:"relayed_by" yaml:"relayed_by"`
 	RelayedBy        string   `json:"relayed_by" bson:"relayed_by" yaml:"relayed_by"`
 	IsRelay          bool     `json:"isrelay" bson:"isrelay" yaml:"isrelay"`
 	IsRelay          bool     `json:"isrelay" bson:"isrelay" yaml:"isrelay"`
 	RelayedHosts     []string `json:"relay_hosts" bson:"relay_hosts" yaml:"relay_hosts"`
 	RelayedHosts     []string `json:"relay_hosts" bson:"relay_hosts" yaml:"relay_hosts"`
-	NatType          string   `json:"nat_type" bson:"nat_type" yaml:"nat_type"`
 }
 }
 
 
 // Host.ConvertNMHostToAPI - converts a Netmaker host to an API editable host
 // Host.ConvertNMHostToAPI - converts a Netmaker host to an API editable host