mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-13 18:31:18 +01:00
006ba32086
Fix ACL on routed traffic and code refactor
19 lines
332 B
Go
19 lines
332 B
Go
package manager
|
|
|
|
type RouterPair struct {
|
|
ID string
|
|
Source string
|
|
Destination string
|
|
Masquerade bool
|
|
}
|
|
|
|
func GetInPair(pair RouterPair) RouterPair {
|
|
return RouterPair{
|
|
ID: pair.ID,
|
|
// invert Source/Destination
|
|
Source: pair.Destination,
|
|
Destination: pair.Source,
|
|
Masquerade: pair.Masquerade,
|
|
}
|
|
}
|