git: 00d2fcdaab14 - main - net-mgmt/unifi8: Allow binding to both INET and INET6 addresses

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Fri, 12 Jan 2024 12:15:17 UTC
The branch main has been updated by otis:

URL: https://cgit.FreeBSD.org/ports/commit/?id=00d2fcdaab14b18f2a4e132f7a7557c84c704061

commit 00d2fcdaab14b18f2a4e132f7a7557c84c704061
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2024-01-12 12:03:04 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2024-01-12 12:13:00 +0000

    net-mgmt/unifi8: Allow binding to both INET and INET6 addresses
    
    PR:             276213
---
 net-mgmt/unifi8/Makefile       | 1 +
 net-mgmt/unifi8/files/unifi.in | 1 +
 2 files changed, 2 insertions(+)

diff --git a/net-mgmt/unifi8/Makefile b/net-mgmt/unifi8/Makefile
index 1b411906ad7a..235762905e5d 100644
--- a/net-mgmt/unifi8/Makefile
+++ b/net-mgmt/unifi8/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	unifi8
 PORTVERSION=	8.0.26
+PORTREVISION=	1
 CATEGORIES=	net-mgmt java
 MASTER_SITES=	http://dl.ubnt.com/unifi/%SUBDIR%/:unifi \
 		https://repo1.maven.org/maven2/%SUBDIR%/:jax
diff --git a/net-mgmt/unifi8/files/unifi.in b/net-mgmt/unifi8/files/unifi.in
index a3cdc54627a1..de9813e5f0f6 100644
--- a/net-mgmt/unifi8/files/unifi.in
+++ b/net-mgmt/unifi8/files/unifi.in
@@ -46,6 +46,7 @@ load_rc_config ${name}
 : ${unifi_chdir=%%JAVASHAREDIR%%/unifi}
 : ${unifi_java_home=%%JAVA_HOME%%}
 : ${unifi_javaflags="-Djava.awt.headless=true -Xmx1024M \
+	-Djava.net.preferIPv4Stack=false \
 	--add-opens java.base/java.lang=ALL-UNNAMED \
 	--add-opens java.base/java.time=ALL-UNNAMED \
 	--add-opens java.base/sun.security.util=ALL-UNNAMED \