mirror of
https://github.com/vx3r/wg-gen-web.git
synced 2025-09-11 12:24:27 +00:00
bug issue #47
This commit is contained in:
@ -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")))
|
||||
}
|
||||
|
Reference in New Issue
Block a user