Merge branch 'master' into master

This commit is contained in:
Moritz R 2022-05-27 13:59:58 +02:00 committed by GitHub
commit e9e78c26e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 1164 additions and 27 deletions

View file

@ -97,6 +97,15 @@
</div>
</div>
<!-- Port -->
<div class="my-3">
<label for="port" class="form-label">{{ $t("Port") }}</label>
<input id="port" v-model="monitor.port" type="number" class="form-control" required min="0" max="65535" step="1">
<div class="form-text">
{{ $t("dnsPortDescription") }}
</div>
</div>
<div class="my-3">
<label for="dns_resolve_type" class="form-label">{{ $t("Resource Record Type") }}</label>
@ -500,6 +509,15 @@ export default {
this.monitor.pushToken = genSecret(10);
}
}
// Set default port for DNS if not already defined
if (! this.monitor.port || this.monitor.port === "53") {
if (this.monitor.type === "dns") {
this.monitor.port = "53";
} else {
this.monitor.port = "";
}
}
}
},