mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 16:56:52 +01:00
Compare a firewall reload with what the running firewall was built from (#1955)
This commit is contained in:
1 parent
cacfa8fac4
commit
b04d71d96a
4 files changed
+83
-8
No files matched your search
@@ -66,6 +66,9 @@ type Firewall struct {
|
||||
rules string
|
||||
rulesVersion uint16
|
||||
|
||||
// source is the rendered firewall config this firewall was built from, the cert networks are kept above
|
||||
source string
|
||||
|
||||
defaultLocalCIDRAny bool
|
||||
incomingMetrics firewallMetrics
|
||||
outgoingMetrics firewallMetrics
|
||||
@@ -246,6 +249,7 @@ func NewFirewallFromConfig(l *slog.Logger, cs *CertState, c *config.C) (*Firewal
|
||||
return nil, err
|
||||
}
|
||||
|
||||
fw.source = c.Render("firewall")
|
||||
return fw, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user