added option to force ipv4 or ipv6 for http(s) monitor type (#5880)

Co-authored-by: Ionys <9364594+Ionys320@users.noreply.github.com>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Fabian Triebsch
2025-06-13 08:14:55 +02:00
committed by GitHub
parent 53e83e7722
commit f282422b22
5 changed files with 54 additions and 0 deletions

View File

@@ -745,6 +745,20 @@
{{ $t("acceptedStatusCodesDescription") }}
</div>
</div>
<div class="my-3">
<label for="ipFamily" class="form-label">{{ $t("Ip Family") }}</label>
<select id="ipFamily" v-model="monitor.ipFamily" class="form-select">
<option :value="null">{{ $t("auto-select") }}</option>
<option value="ipv4">IPv4</option>
<option value="ipv6">IPv6</option>
</select>
<i18n-t v-if="monitor.ipFamily == null" keypath="ipFamilyDescriptionAutoSelect" tag="div" class="form-text">
<template #happyEyeballs>
<a href="https://en.wikipedia.org/wiki/Happy_Eyeballs" target="_blank">{{ $t("Happy Eyeballs algorithm") }}</a>
</template>
</i18n-t>
</div>
</template>
<!-- Parent Monitor -->
@@ -1129,6 +1143,7 @@ const monitorDefaults = {
parent: null,
url: "https://",
method: "GET",
ipFamily: null,
interval: 60,
retryInterval: 60,
resendInterval: 0,