Skip to content

Commit

Permalink
Now ucsf vpn validates the VPN connection using a UCSF IT web servi…
Browse files Browse the repository at this point in the history
…ce (fixes #67)
  • Loading branch information
HenrikBengtsson committed Jun 19, 2024
1 parent df31939 commit 5fd42e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ ucsf-vpn

## Version (development version)

### Significant changes

* Now `ucsf vpn` validates the VPN connection using a UCSF IT web
service hosted under `*.ucsf.edu`. Previously
<https://ipinfo.io/ip> was the default method. Note that `ucsf vpn
connection` still uses ipinfo.io.

### New Features

* Now `ucsf vpn start --flavor=none` sets the default flavor. This
Expand Down
8 changes: 4 additions & 4 deletions bin/ucsf-vpn
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
### --realm=<realm> VPN realm (default is 'Dual-Factor Pulse Clients')
### --url=<url> VPN URL (default is https://{{server}}/pulse)
### --protocol=<ptl> VPN protocol, e.g. 'nc' (default) and 'pulse'
### --validate=<how> One or more of 'ipinfo', 'iproute', and 'pid', e.g.
### 'pid,iproute,ipinfo' (default)
### --validate=<how> One or more of 'ipinfo', 'iproute', 'pid', 'ucsfit',
### e.g. 'pid,iproute,ucsfit' (default)
### --theme=<theme> Either 'cli' (default) or 'none'
### --flavor=<flvr> Use a customized flavor of the VPN (default: 'none')
###
Expand Down Expand Up @@ -109,7 +109,7 @@
### * UCSF Managing Your Passwords:
### - https://it.ucsf.edu/services/managing-your-passwords
###
### Version: 6.0.0-9005
### Version: 6.0.0-9006
### Copyright: Henrik Bengtsson (2016-2024)
### License: GPL (>= 2.1) [https://www.gnu.org/licenses/gpl.html]
### Source: https://github.com/HenrikBengtsson/ucsf-vpn
Expand Down Expand Up @@ -1798,7 +1798,7 @@ fi

## Validate 'validate'
if [[ -z $validate ]]; then
validate=${UCSF_VPN_VALIDATE:-pid,iproute,ipinfo}
validate=${UCSF_VPN_VALIDATE:-pid,iproute,ucsfit}
fi


Expand Down

0 comments on commit 5fd42e6

Please sign in to comment.