Skip to content

Commit

Permalink
Add proto field check for onc
Browse files Browse the repository at this point in the history
  • Loading branch information
dpb587 committed Oct 11, 2018
1 parent b17007d commit 1167a52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ovpn/onc/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ func Encode(profile *ovpn.Profile) (*onc.ONC, error) {
openvpnConfig.NsCertType = pe.Args()[0]
case "push-peer-info":
openvpnConfig.PushPeerInfo = true
case "proto":
openvpnConfig.Proto = pe.Args()[0]
case "remote":
subpieced := whitespaceRE.Split(pe.Args()[0], 3)
if networkConfigurationConfig.VPN.Host == "" {
Expand Down

0 comments on commit 1167a52

Please sign in to comment.