Skip to content

Commit

Permalink
fix: add comments on shorewall6
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelemusiani committed Nov 25, 2024
1 parent 2aabe5b commit d6a6b01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion macpassd/fw/shorewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (s *Shorewall) Allow(r registration.Registration) {
Interface: s.conf.Firewall.ShorewallIF,
Mac: r.Mac,
IPAddr: "",
Comment: fmt.Sprintf("#macpass %s", r.User),
Comment: fmt.Sprintf("#%s", r.User),
})

err = writeMAC4File(entries)
Expand All @@ -94,6 +94,8 @@ func (s *Shorewall) Allow(r registration.Registration) {
Disposition: "ACCEPT",
Interface: s.conf.Firewall.ShorewallIF,
Mac: r.Mac,
IPAddr: "",
Comment: fmt.Sprintf("#%s", r.User),
})

err = writeMAC6File(entries)
Expand Down

0 comments on commit d6a6b01

Please sign in to comment.