--upstream flag missing in generated systemd service file
jsiebens opened this issue · 2 comments
jsiebens commented
When generating the systemd service file with the following command:
inlets-pro client --generate systemd --license $LICENSE --port 8443 --connect "wss://<my-exit-node-pi/connect" --token "<my-token>" --upstream localhost
this is the outcome, which is missing the --upstream
flag:
[Unit]
Description=inlets PRO Client
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=5
StartLimitInterval=0
ExecStart=/usr/local/bin/inlets-pro client --connect="wss://<my-exit-node-pi/connect" --auto-tls --ports="8443" --license="<my license key" --token="<my-token>"
[Install]
WantedBy=multi-user.target
Version used:
$ inlets-pro version
_ _ _ _
(_)_ __ | | ___| |_ ___ __| | _____ __
| | '_ \| |/ _ \ __/ __| / _` |/ _ \ \ / /
| | | | | | __/ |_\__ \| (_| | __/\ V /
|_|_| |_|_|\___|\__|___(_)__,_|\___| \_/
PRO edition
Version: 0.7.0
Git Commit: 9235266702ba0840e6c0ff3cf001507571bd2e2d
alexellis commented
I've committed a fix for this which will be in the next patch release.
alexellis commented
inlets-pro client --license-file ~/LICENSE --upstream localhost --port 80 --generate=systemd --connect wss://localhost:8123 --token test
2020/10/04 10:40:23 Welcome to inlets-pro! Client version 0.7.1
2020/10/04 10:40:23 Licensed to: Alex Ellis <alex@openfaas.com>, expires: 37 day(s)
[Unit]
Description=inlets PRO Client
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=5
StartLimitInterval=0
ExecStart=/usr/local/bin/inlets-pro client --connect="wss://localhost:8123" --upstream="localhost" --auto-tls --ports="80" --license-file=/Users/alex/LICENSE --token="test"
[Install]
WantedBy=multi-user.target