import (
"bytes"
- "path"
"sync"
"time"
}
func callUp(peerId *govpn.PeerId) (string, error) {
- upPath := path.Join(govpn.PeersPath, peerId.String(), "up.sh")
- result, err := govpn.ScriptCall(upPath, "")
+ result, err := govpn.ScriptCall(confs[*peerId].Up, "")
if err != nil {
return "", err
}