Subversion Repositories web_pages

Rev

Rev 14 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14 Rev 15
Line 108... Line 108...
108
                  apiKey    => $config->{'apiKey'},
108
                  apiKey    => $config->{'apiKey'},
109
                  apiSecret => $config->{'apiSecret'},
109
                  apiSecret => $config->{'apiSecret'},
110
               );
110
               );
111
               my $providers = $opnsense->get_vpn_providers();
111
               my $providers = $opnsense->get_vpn_providers();
112
               if ( ref($providers) eq 'HASH' && keys %$providers ) {
112
               if ( ref($providers) eq 'HASH' && keys %$providers ) {
-
 
113
                  #die Dumper( $providers );
113
                  my @providerIndex = sort keys %$providers;
114
                  my @providerIndex = sort keys %$providers;
114
                  my @additionalText = map { 
115
                  my @additionalText = map { 
115
                        defined $config->{'ovpnIndex'} &&
116
                        defined $config->{'ovpnIndex'} &&
116
                        ($_ eq $config->{'ovpnIndex'} ? " (current) " : "") . $providers->{$_} 
117
                        ($_ eq $config->{'ovpnIndex'} ? " (current) " : "") . $providers->{$_} 
117
                        } @providerIndex;
118
                        } @providerIndex;