mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
openvpn: Clean up DH download code.
This commit is contained in:
@@ -1519,17 +1519,6 @@ END
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
###
|
|
||||||
### Download Diffie-Hellman parameter
|
|
||||||
###
|
|
||||||
}elsif ($cgiparams{'ACTION'} eq $Lang::tr{'download dh parameter'}) {
|
|
||||||
if ( -f "${General::swroot}/ovpn/ca/dh1024.pem" ) {
|
|
||||||
print "Content-Type: application/octet-stream\r\n";
|
|
||||||
print "Content-Disposition: filename=dh1024.pem\r\n\r\n";
|
|
||||||
print `/usr/bin/openssl dhparam -in ${General::swroot}/ovpn/ca/dh1024.pem`;
|
|
||||||
exit(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Download tls-auth key
|
### Download tls-auth key
|
||||||
###
|
###
|
||||||
|
|||||||
Reference in New Issue
Block a user