Files
gluetun/internal/models/openvpn.go

18 lines
419 B
Go
Raw Normal View History

package models
import (
"net"
)
type OpenVPNConnection struct {
2021-02-06 18:31:14 +00:00
IP net.IP `json:"ip"`
Port uint16 `json:"port"`
Protocol string `json:"protocol"`
Hostname string `json:"hostname"` // Privado for tls verification
}
func (o *OpenVPNConnection) Equal(other OpenVPNConnection) bool {
2020-11-08 20:56:49 -05:00
return o.IP.Equal(other.IP) && o.Port == other.Port && o.Protocol == other.Protocol &&
o.Hostname == other.Hostname
}