timeout int
firstUpCall bool = true
knownPeers govpn.KnownPeers
+ idsCache govpn.CipherCache
)
func main() {
DSAPub: pub,
DSAPriv: priv,
}
- govpn.PeersInitDummy(id, conf)
+ idsCache = govpn.NewCipherCache([]govpn.PeerId{*id})
log.Println(govpn.VersionGet())
tap, err = govpn.TAPListen(*ifaceName)
timeouted := make(chan struct{})
rehandshaking := make(chan struct{})
termination := make(chan struct{})
+ if *proxyAddr != "" {
+ *proto = "tcp"
+ }
switch *proto {
case "udp":
go startUDP(timeouted, rehandshaking, termination)