MarkusMcNugen / docker-qBittorrentvpn

Docker container which runs a headless qBittorrent client with WebUI and optional OpenVPN
https://hub.docker.com/r/markusmcnugen/qbittorrentvpn/
GNU General Public License v3.0
176 stars 93 forks source link

Fails to start OpenVPN if the .ovpn file has spaces in filename #59

Open zand opened 4 years ago

zand commented 4 years ago

If you use a .ovpn file with a space in the file name, for example "CA Toronto.ovpn", OpenVPN fails to start with the following error.

Options error: Unrecognized option or missing or extra parameter(s) in [CMD-LINE]:1: config (2.4.4)
Use --help for more information.
quantumicrowave commented 4 years ago

try renaming it to "CA\ Toronto.ovpn"

zand commented 4 years ago

try renaming it to "CA\ Toronto.ovpn"

The flaw is most likely due to a script not putting quotes around variables passed to a command in the line below. https://github.com/MarkusMcNugen/docker-qBittorrentvpn/blob/e76192d13f2eb3d474e94f5a47fe42b281cf89c2/openvpn/start.sh#L165 I do not have the time to test it but I would imagine that renaming it to "CA\ Toronto.ovpn" would just result in a error because it would be looking for a file named "CA Toronto.ovpn" witch no longer exists.