Merge branch 'dev' into icmp2

This commit is contained in:
Owen
2025-12-16 13:48:00 -05:00
4 changed files with 133 additions and 10 deletions

View File

@@ -46,6 +46,7 @@ type Target struct {
type PortRange struct {
Min uint16 `json:"min"`
Max uint16 `json:"max"`
Protocol string `json:"protocol"` // "tcp" or "udp"
}
type Peer struct {
@@ -702,6 +703,7 @@ func (s *WireGuardService) ensureTargets(targets []Target) error {
portRanges = append(portRanges, netstack2.PortRange{
Min: pr.Min,
Max: pr.Max,
Protocol: pr.Protocol,
})
}