X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgovpn%2Fcmd%2Fgovpn-server%2Fconf.go;h=e32a5059a71f7510c2d7de4477103049d315a569;hb=572cac17bde738055312f7a468a0bde0e760a262;hp=28ee501443a0a7dbcc3ceb332c3eee22b80f7644;hpb=3413874a359d386b082614637c9ab247bb6510b4;p=govpn.git diff --git a/src/cypherpunks.ru/govpn/cmd/govpn-server/conf.go b/src/cypherpunks.ru/govpn/cmd/govpn-server/conf.go index 28ee501..e32a505 100644 --- a/src/cypherpunks.ru/govpn/cmd/govpn-server/conf.go +++ b/src/cypherpunks.ru/govpn/cmd/govpn-server/conf.go @@ -1,6 +1,6 @@ /* GoVPN -- simple secure free software virtual private network daemon -Copyright (C) 2014-2016 Sergey Matveev +Copyright (C) 2014-2017 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,7 +24,7 @@ import ( "log" "time" - "github.com/go-yaml/yaml" + "gopkg.in/yaml.v2" "cypherpunks.ru/govpn" ) @@ -35,7 +35,7 @@ const ( var ( confs map[govpn.PeerId]*govpn.PeerConf - idsCache *govpn.CipherCache + idsCache *govpn.MACCache ) func confRead() (*map[govpn.PeerId]*govpn.PeerConf, error) { @@ -99,7 +99,7 @@ func confRefresh() error { } func confInit() { - idsCache = govpn.NewCipherCache() + idsCache = govpn.NewMACCache() if err := confRefresh(); err != nil { log.Fatalln(err) }