Skip to content

Commit

Permalink
Update network.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc committed Jul 20, 2023
1 parent 9fa1d23 commit f461e61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/class/network.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ public static function dns_create() {
$openvpn->setEqType_name('openvpn');
$openvpn->setConfiguration('dev', 'tun');
$openvpn->setConfiguration('proto', 'udp');
if(strpos(config::byKey('dns::protocol'),config::byKey('dns::preferProtocol')) !== false){
$openvpn->setConfiguration('proto', config::byKey('dns::preferProtocol'));
}
if (config::byKey('dns::vpnurl') != '') {
$openvpn->setConfiguration('remote_host', config::byKey('dns::vpnurl'));
} else {
Expand Down

0 comments on commit f461e61

Please sign in to comment.