wireguard: switch from gcfg to asciigoat [WIP]

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-30 00:38:54 +00:00
parent 0a5cdb313a
commit d5d25f01b0
3 changed files with 4 additions and 8 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ import (
"strings"
"text/template"
"asciigoat.org/ini"
"darvaza.org/core"
"gopkg.in/gcfg.v1"
)
var configTemplate = template.Must(template.New("config").Funcs(template.FuncMap{
@@ -251,7 +251,7 @@ func (v *intermediateConfig) PeersCount() (int, bool) {
func NewConfigFromReader(r io.Reader) (*Config, error) {
temp := &intermediateConfig{}
if err := gcfg.ReadInto(temp, r); err != nil {
if err := ini.ReadInto(temp, r); err != nil {
return nil, err
}