Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background Parameter Not Functioning When Arguments Are Passed After "--" #141

Open
lucashtc opened this issue Sep 4, 2023 · 2 comments

Comments

@lucashtc
Copy link

lucashtc commented Sep 4, 2023

When passing arguments after the "--" delimiter, the -b or --background parameter does not function as expected. To achieve the desired behavior, it is necessary to pass the parameter multiple times.

openconnect-sso -s novaoivpn.oi.net.br --log-level=DEBUG -- --background --pid-file=/run/openconnect-sso-vpn.pid --script=vpn/pos_vpn.sh --background

Output:
['sudo', 'openconnect', '--useragent', 'AnyConnect Linux_64 xxxxxxx', '--version-string', 'xxxxxx', '--cookie-on-stdin', '--servercert', 'xxxxxxxxxxxxxxxxxxxxxxxxxx', '--pid-file=/run/openconnect-sso-vpn.pid', '--script=vpn_oi_scripts/pos_vpn.sh', '--background', 'https://xxxxxxx.xx.net.br/']

I'm using Branch Master

@gms1
Copy link

gms1 commented Nov 17, 2023

seems also work if just the "--" delimiter is entered twice
e.g

openconnect-sso -s vpnserver-url -- -- --background --pid-file=....

@HiMyNameIsIlNano
Copy link

Thanks @gms1! This has fixed my issue with the background option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants