- Ability to enable and disable rules in various loops - Simplified code overall - Port forwarding moved into openvpn loop - Route addition and removal improved
14 lines
278 B
Go
14 lines
278 B
Go
package models
|
|
|
|
import "net"
|
|
|
|
type OpenVPNConnection struct {
|
|
IP net.IP
|
|
Port uint16
|
|
Protocol NetworkProtocol
|
|
}
|
|
|
|
func (o *OpenVPNConnection) Equal(other OpenVPNConnection) bool {
|
|
return o.IP.Equal(other.IP) && o.Port == other.Port && o.Protocol == other.Protocol
|
|
}
|