New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openvpn dont show vpn client/user ip in dashboard #1862

Open
lohmuller opened this Issue Jan 16, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@lohmuller
Copy link

lohmuller commented Jan 16, 2019

In the dashboard dont show the vpn client IP, only the public IP...
Image

I think is possible change this code to show

my $titles = [__('Common name'),__('Address'), __('Connected since')];
my $rows = {};
my $path = $self->logDir() . '/' . 'status-' . $ovpn . '.log';
if (-f $path) {
my @status = read_file($path);
my $state = 0;
for my $line (@status) {
chomp($line);
if($state == 0) {
if($line =~m/^Common Name,/) {
$state = 1;
}
} elsif($state == 1) {
my @fields = split(',', $line);
if(@fields != 5) {
last;
}
my ($cname,$address,$recv,$sent,$date) = @fields;
$rows->{$cname} = [$cname,$address,$date];

@lohmuller lohmuller changed the title Openvpn show vpn client/user ip in dashboard (feature request) Openvpn show vpn client/user ip in dashboard Jan 16, 2019

@lohmuller lohmuller changed the title Openvpn show vpn client/user ip in dashboard Openvpn dont show vpn client/user ip in dashboard Jan 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment