embedded file to windows, cleaned up logs

This commit is contained in:
0xdcarns
2021-12-12 18:04:41 -05:00
parent 9a72825534
commit a856cbc638
8 changed files with 107 additions and 60 deletions

View File

@@ -23,10 +23,16 @@ func RunCmd(command string, printerr bool) (string, error) {
return string(out), err
}
// RunCmdFormatted - does nothing for linux
func RunCmdFormatted(command string, printerr bool) (string, error) {
return "", nil
}
// GetEmbedded - if files required for linux, put here
func GetEmbedded() error {
return nil
}
// CreateUserSpaceConf - creates a user space WireGuard conf
func CreateUserSpaceConf(address string, privatekey string, listenPort string, mtu int32, perskeepalive int32, peers []wgtypes.PeerConfig) (string, error) {
peersString, err := parsePeers(perskeepalive, peers)