mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-02 21:00:12 -05:00
dns/dyndns: wildcard for namecheap; closes #586
This commit is contained in:
@@ -102,8 +102,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
do_input_validation($pconfig, $reqdfields, $reqdfieldsn, $input_errors);
|
||||
|
||||
if (isset($pconfig['host']) && in_array('host', $reqdfields)) {
|
||||
/* Namecheap can have a @. in hostname */
|
||||
if ($pconfig['type'] == "namecheap" && substr($pconfig['host'], 0, 2) == '@.') {
|
||||
/* Namecheap can have a @. or *. in hostname */
|
||||
if ($pconfig['type'] == "namecheap" && (substr($pconfig['host'], 0, 2) == '@.' || substr($pconfig['host'], 0, 2) == '*.')) {
|
||||
$host_to_check = substr($pconfig['host'], 2);
|
||||
} else {
|
||||
$host_to_check = $pconfig['host'];
|
||||
|
||||
Reference in New Issue
Block a user