mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-22 16:07:11 +08:00
NM-79: Domain Based Egress Routing (#3607)
* add support for egress domain routing * add domain info to egress range * fix egress domain update * send peer update domain resolution update * add egress domain update in the peer update * use range field for domain check * add egress domain to host pull * add egress domain model to egress host update * add egress domain model to egress host update * update egress domain model on acls * add check of range if domain is set * sync egress domains to dns system * add egress domain to match domain list, fix egress nat rule for domains * fix all rsrcs comms * fix static checks * fix egress acls on CE * check for all resources access on a node * simplify egress acl rules * merged ce and pro acl rule func * fix uni direction acl rule for static nodes * allow relayed nodes traffic * resolve merge conflicts * remove anywhere dst rule on user node acls * fix: broadcast user groups update for acl changes * add egress domain ans routes to nodes * add egress ranges to DST * add all egress ranges for all resources * fix DNS routing acls rules
This commit is contained in:
@@ -343,6 +343,10 @@ func updateHosts() {
|
||||
}
|
||||
logic.UpsertHost(&host)
|
||||
}
|
||||
if host.IsDefault && !host.AutoUpdate {
|
||||
host.AutoUpdate = true
|
||||
logic.UpsertHost(&host)
|
||||
}
|
||||
if servercfg.IsPro && host.Location == "" {
|
||||
if host.EndpointIP != nil {
|
||||
host.Location = logic.GetHostLocInfo(host.EndpointIP.String(), os.Getenv("IP_INFO_TOKEN"))
|
||||
|
||||
Reference in New Issue
Block a user