Changing filename for wg0.
This commit is contained in:
parent
550c2d9d09
commit
27759d1baf
@ -4,6 +4,7 @@ use v5.38.2;
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
use Encode qw/decode encode/;
|
||||||
|
|
||||||
use Crypt::Bcrypt qw/bcrypt_check/;
|
use Crypt::Bcrypt qw/bcrypt_check/;
|
||||||
use VPNManager::Schema;
|
use VPNManager::Schema;
|
||||||
@ -117,7 +118,8 @@ PublicKey = $publickey
|
|||||||
AllowedIPs = @{[$config->{vpnclients}{allowedips}]}
|
AllowedIPs = @{[$config->{vpnclients}{allowedips}]}
|
||||||
Endpoint = @{[$config->{vpnclients}{endpoint}]}:@{[$config->{vpnclients}{server_port}]}
|
Endpoint = @{[$config->{vpnclients}{endpoint}]}:@{[$config->{vpnclients}{server_port}]}
|
||||||
EOF
|
EOF
|
||||||
my $filename = $user->name . '-vpn.conf';
|
my $filename = 'wg0.conf';
|
||||||
|
|
||||||
$self->res->headers->add( 'Content-Type',
|
$self->res->headers->add( 'Content-Type',
|
||||||
'application/x-download;name=' . $filename );
|
'application/x-download;name=' . $filename );
|
||||||
$self->res->headers->add( 'Content-Disposition',
|
$self->res->headers->add( 'Content-Disposition',
|
||||||
|
Loading…
Reference in New Issue
Block a user