russdill / juniper-vpn-py

Python Juniper VPN Authenticator
GNU Lesser General Public License v2.1
103 stars 80 forks source link

Make TNCC user agent string overridable. #14

Open chrisdiamand opened 8 years ago

chrisdiamand commented 8 years ago

Hi,

Thanks for your work on this! The last-but-one commit (funk support) changed the tncc user_agent, which meant I couldn't login. This commit allows the user to change it by passing the "--user-agent" command-line option to tncc, and also checking $TNCC_USER_AGENT.

I've also changed the default back to "Mozilla/5.0...", instead of "Neoteris HC Http" - I realise that if that's what you use it this may be annoying. Feel free to change that part, although I do think it makes sense to have the default as something which'll work for the common case.

Cheers! Chris