Maintenance: split each provider in a package
- Fix VyprVPN port - Fix missing Auth overrides
This commit is contained in:
@@ -2,6 +2,7 @@ package models
|
||||
|
||||
import (
|
||||
"net"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
type OpenVPNConnection struct {
|
||||
@@ -15,3 +16,11 @@ func (o *OpenVPNConnection) Equal(other OpenVPNConnection) bool {
|
||||
return o.IP.Equal(other.IP) && o.Port == other.Port && o.Protocol == other.Protocol &&
|
||||
o.Hostname == other.Hostname
|
||||
}
|
||||
|
||||
func (o OpenVPNConnection) RemoteLine() (line string) {
|
||||
return "remote " + o.IP.String() + " " + strconv.Itoa(int(o.Port))
|
||||
}
|
||||
|
||||
func (o OpenVPNConnection) ProtoLine() (line string) {
|
||||
return "proto " + o.Protocol
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user