0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2025-09-11 12:24:27 +00:00
This commit is contained in:
vx3r
2020-07-15 15:52:16 +09:00
parent 4a6cc6dea8
commit 8b4038c238
2 changed files with 8 additions and 22 deletions

View File

@ -168,3 +168,8 @@ func GetAllReservedIps() ([]string, error) {
return reserverIps, nil
}
// ReadWgConfigFile return content of wireguard config file
func ReadWgConfigFile() ([]byte, error) {
return util.ReadFile(filepath.Join(os.Getenv("WG_CONF_DIR"), os.Getenv("WG_INTERFACE_NAME")))
}