Przeglądaj źródła

refactor(vpn/client): include ns-cert-type server

Directive `ns-cert-type server` is also included to the client config file.
Mustafa Arici 8 lat temu
rodzic
commit
b212677305
2 zmienionych plików z 3 dodań i 2 usunięć
  1. 2 2
      bindata/bindata.go
  2. 1 0
      template/client.ovpn.tmpl

+ 2 - 2
bindata/bindata.go

@@ -92,7 +92,7 @@ func templateCcdFileTmpl() (*asset, error) {
 	return a, nil
 }
 
-var _templateClientOvpnTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x3c\x8e\xb1\x6a\x03\x31\x0c\x86\x77\x3d\x85\xa0\x4b\x3b\x5c\x3c\x74\x2b\x47\xa1\x74\x29\x94\xd2\x4c\x5d\x4a\x07\x9f\x4f\x49\x4c\x6c\xcb\xc8\x3a\x83\x1b\xfc\xee\xe5\x2e\xa1\x9b\xfe\x4f\x48\xdf\x7f\x87\x7a\xf2\x05\xb9\xe6\x84\x07\x1f\x08\x7d\x41\xbb\x28\x47\xab\xde\xd9\x10\x1a\x1e\x29\x91\x58\xa5\x19\xa7\x86\xdf\x9f\x5f\xfb\x8f\x9f\xfb\x93\x6a\x2e\x4f\xc6\x1c\xbd\x9e\x96\x69\xe7\x38\x1a\x67\x67\xc3\x35\xc7\x07\x00\x17\x3c\x25\x85\x99\x2a\xea\x92\x20\x0b\x2b\xe3\x32\x67\x10\x8a\xac\x84\x97\x0b\xee\xde\xb8\x68\xb2\x91\xb0\xf7\x2d\xef\x59\x14\x7b\x07\xa1\xc2\xa1\x0e\x42\x2a\x0d\x7d\x3a\xf8\xe4\x95\x6e\x87\x83\x23\xd1\x41\x43\xc1\x42\x52\x49\x20\xf1\xe4\xd3\x0c\x99\xa4\xf8\xa2\xc3\x99\xda\xff\xbc\x8a\x1d\xc7\x3c\x84\x5f\x86\x4a\x32\xe1\x23\xc0\xe8\xec\x33\xac\xb6\xd7\x17\xec\x7d\x34\x6b\x1c\xd7\xa7\x37\x4a\x5b\x87\xd1\x5c\xd1\x78\xa6\x76\x5d\xbc\x53\xdb\xf8\x06\xfe\x02\x00\x00\xff\xff\x96\xf9\x3e\xe7\x32\x01\x00\x00")
+var _templateClientOvpnTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x3c\xce\x31\x6b\x33\x31\x0c\x06\xe0\x5d\xbf\x42\xf0\x2d\x5f\x87\x8b\x87\x6e\xe5\x28\x94\x2e\x85\x52\x9a\xa9\x4b\xe9\xe0\xf3\x29\x89\x89\x6d\x19\x59\x67\x70\x83\xff\x7b\xb9\x4b\xc8\xa6\xf7\x11\x12\xef\x3f\xd4\x93\x2f\xc8\x35\x27\x3c\xf8\x40\xe8\x0b\xda\x45\x39\x5a\xf5\xce\x86\xd0\xf0\x48\x89\xc4\x2a\xcd\x38\x35\xfc\xfe\xfc\xda\x7f\xfc\xfc\x3f\xa9\xe6\xf2\x64\xcc\xd1\xeb\x69\x99\x76\x8e\xa3\x71\x76\x36\x5c\x73\x7c\x00\x70\xc1\x53\x52\x98\xa9\xa2\x2e\x09\xb2\xb0\x32\x2e\x73\x06\xa1\xc8\x4a\x78\xb9\xe0\xee\x8d\x8b\x26\x1b\x09\x7b\xdf\xf2\x9e\x45\xb1\x77\x10\x2a\x1c\xea\x20\xa4\xd2\xd0\xa7\x83\x4f\x5e\xe9\x76\x38\x38\x12\x1d\x34\x14\x2c\x24\x95\x04\x52\xb9\x51\xcb\x74\x37\x9e\x7c\x9a\x21\x93\x14\x5f\x74\x38\x53\xbb\xcf\x6b\x19\xc7\x31\x0f\xe1\x97\xa1\x92\x4c\xf8\x08\x30\x3a\xfb\x0c\x6b\x83\xd7\x17\xec\x7d\x34\x6b\x1c\xd7\xaf\x37\xa5\xad\xd7\x68\xae\x34\x9e\xa9\x5d\x17\xef\xd4\x36\xdf\xe0\x2f\x00\x00\xff\xff\xdf\x7e\x10\xe9\x46\x01\x00\x00")
 
 func templateClientOvpnTmplBytes() ([]byte, error) {
 	return bindataRead(
@@ -107,7 +107,7 @@ func templateClientOvpnTmpl() (*asset, error) {
 		return nil, err
 	}
 
-	info := bindataFileInfo{name: "template/client.ovpn.tmpl", size: 306, mode: os.FileMode(436), modTime: time.Unix(1502659670, 0)}
+	info := bindataFileInfo{name: "template/client.ovpn.tmpl", size: 326, mode: os.FileMode(436), modTime: time.Unix(1502977984, 0)}
 	a := &asset{bytes: bytes, info: info}
 	return a, nil
 }

+ 1 - 0
template/client.ovpn.tmpl

@@ -6,6 +6,7 @@ proto udp
 remote {{ .Hostname }} {{ .Port }}
 resolv-retry infinite
 remote-cert-tls server
+ns-cert-type server
 nobind
 persist-key
 persist-tun