diff options
| author | Sebastien Bacher <seb128@ubuntu.com> | 2022-05-17 15:30:19 +0200 |
|---|---|---|
| committer | Sebastien Bacher <seb128@ubuntu.com> | 2022-05-17 15:30:19 +0200 |
| commit | 1e636d8e5e986b9f2260c36bb87fb499d724085c (patch) | |
| tree | ac613b9372adf622496a7d616050d7e1c09b4fba /src/libnm-core-impl/nm-setting-proxy.c | |
| parent | f4966e573c855d4667e6c236d8197d9949020e21 (diff) | |
| parent | 1a31bc3c63474ca02c83b02add85ea4e740e5597 (diff) | |
Merge remote-tracking branch 'debian/debian/master' into ubuntu/master
Diffstat (limited to 'src/libnm-core-impl/nm-setting-proxy.c')
| -rw-r--r-- | src/libnm-core-impl/nm-setting-proxy.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/libnm-core-impl/nm-setting-proxy.c b/src/libnm-core-impl/nm-setting-proxy.c index 4b9a2970..8b91210b 100644 --- a/src/libnm-core-impl/nm-setting-proxy.c +++ b/src/libnm-core-impl/nm-setting-proxy.c @@ -114,7 +114,7 @@ nm_setting_proxy_get_pac_url(NMSettingProxy *setting) * nm_setting_proxy_get_pac_script: * @setting: the #NMSettingProxy * - * Returns: the PAC script + * Returns: the PAC script. * * Since: 1.6 **/ @@ -315,15 +315,25 @@ nm_setting_proxy_class_init(NMSettingProxyClass *klass) /** * NMSettingProxy:pac-script: * - * PAC script for the connection. + * PAC script for the connection. This is an UTF-8 encoded javascript code + * that defines a FindProxyForURL() function. * * Since: 1.6 **/ + /* ---nmcli--- + * property: pac-script + * description: The PAC script. In the profile this must be an UTF-8 encoded javascript code that defines + * a FindProxyForURL() function. + * When setting the property in nmcli, a filename is accepted too. In that case, + * nmcli will read the content of the file and set the script. The prefixes "file://" and "js://" are + * supported to explicitly differentiate between the two. + * ---end--- + */ /* ---ifcfg-rh--- * property: pac-script * variable: PAC_SCRIPT(+) - * description: Path of the PAC script. - * example: PAC_SCRIPT=/home/joe/proxy.pac + * description: The PAC script. This is an UTF-8 encoded javascript code that defines a FindProxyForURL() function. + * example: PAC_SCRIPT="function FindProxyForURL (url, host) { return 'PROXY proxy.example.com:8080; DIRECT'; }" * ---end--- */ _nm_setting_property_define_direct_string(properties_override, |