mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
library: Allow specifying the path to strongswan.conf in the STRONGSWAN_CONF env var
This commit is contained in:
parent
0efea2fd86
commit
5fea45506e
@ -263,7 +263,7 @@ bool library_init(char *settings, const char *namespace)
|
||||
.get = _get,
|
||||
.set = _set,
|
||||
.ns = strdup(namespace ?: "libstrongswan"),
|
||||
.conf = strdupnull(settings ?: STRONGSWAN_CONF),
|
||||
.conf = strdupnull(settings ?: (getenv("STRONGSWAN_CONF") ?: STRONGSWAN_CONF)),
|
||||
},
|
||||
.ref = 1,
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user