mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-03 05:24:56 +01:00
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,
|
||
|
}
|
||
|
}
|