added fwmark

This commit is contained in:
afeiszli
2021-11-12 08:53:50 -05:00
parent 97acdc5e8b
commit c2948a3671
9 changed files with 62 additions and 47 deletions

View File

@@ -35,7 +35,7 @@ func SetupSystemDDaemon(interval string) error {
os.Symlink("/etc/netclient/netclient", "/usr/local/bin/netclient")
}
if !ncutils.FileExists("/etc/netclient/netclient") {
_, err = ncutils.Copy(binarypath, "/etc/netclient/netclient")
err = ncutils.Copy(binarypath, "/etc/netclient/netclient")
if err != nil {
log.Println(err)
return err