Files
docker-deluge-openvpn/openvpn
namekal 567d37066a [NORDVPN] Fix setting download URL
I do not provide the `NORDVPN_PROTOCOL` variable in my container.

`NORDVPN_PROTOCOL` is defaulted to `"udp"` in `/openvpn/start.sh`

L96 here checks and provides the final portion of the .ovpn download URL which includes `.udp1194` (or `.tcp443` if `NORDVPN_PROTOCOL` was set to "tcp")

The end result in these checks and definitions causes the download URL to include an extra `.udp` in the address.
In my logs, this is the url it provides to `curl` from which is invalid:
`https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/us4436.nordvpn.com.udp.udp1194.ovpn`

It should end up being this instead:
`https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/us4436.nordvpn.com.udp1194.ovpn`

Log below:
```
Using OpenVPN provider: NORDVPN
2019-09-21 22:07:03 Checking curl installation
2019-09-21 22:07:03 Removing existing configs
2019-09-21 22:07:03 Selecting the best server...
2019-09-21 22:07:03 Searching for group: legacy_p2p
2019-09-21 22:07:03 Searching for technology: openvpn_udp
2019-09-21 22:07:03 Best server : us4436.nordvpn.com
2019-09-21 22:07:03 Downloading config: default.ovpn
2019-09-21 22:07:03 Downloading from: https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/us4436.nordvpn.com.udp.udp1194.ovpn
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current   Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   162  100   162    0     0    809      0 --:--:-- --:--:-- --:--:--   810
2019-09-21 22:07:03 Checking line endings
2019-09-21 22:07:03 Updating configs for docker-transmission-openvpn
Starting OpenVPN using config default.ovpn
Setting OPENVPN credentials...
adding route to local network 0.0.0.0 via 172.18.0.1 dev eth0
Options error: Unrecognized option or missing or extra parameter(s) in /etc/openvpn/nordvpn/default.ovpn:1: html (2.4.7)
Use --help for more information.
```
2019-09-21 20:09:06 -04:00
..
2017-09-11 11:43:24 -04:00
2019-04-24 17:12:07 +02:00
2017-02-28 20:04:11 +01:00
2017-04-02 19:31:30 +02:00
2018-01-07 23:36:27 -05:00
2019-01-10 18:15:17 +01:00
2019-03-02 19:39:16 +00:00
2019-03-24 16:37:23 +01:00
2018-02-11 12:45:37 -08:00
2019-05-01 00:06:48 +08:00
2018-07-13 05:14:55 -05:00
2018-04-21 21:58:01 +10:00
2017-11-15 15:52:18 -05:00
2018-04-03 12:58:32 +02:00
2016-09-17 14:42:29 +02:00
2019-03-18 00:29:36 -07:00
2018-10-17 08:55:38 +02:00
2017-11-08 20:41:56 +00:00
2019-04-24 17:12:07 +02:00
2016-10-07 14:38:59 -07:00
2019-04-06 13:15:42 +02:00
2017-01-22 13:00:06 +01:00
2019-02-04 21:43:46 +01:00