fix(custom): OPENVPN_CUSTOM_CONFIG

This commit is contained in:
Quentin McGaw
2022-01-07 15:12:49 +00:00
parent 05f42f0cb8
commit b32c01c11a
3 changed files with 7 additions and 2 deletions

View File

@@ -13,6 +13,11 @@ import (
func (r *Reader) readOpenVPNSelection() (
selection settings.OpenVPNSelection, err error) {
confFile := os.Getenv("OPENVPN_CUSTOM_CONFIG")
if confFile != "" {
selection.ConfFile = &confFile
}
selection.TCP, err = r.readOpenVPNProtocol()
if err != nil {
return selection, err