File tree 1 file changed +16
-0
lines changed
core/src/com/biglybt/core/tracker/client/impl/bt
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -2088,8 +2088,19 @@ protected TRTrackerAnnouncerResponseImpl updateSupport() {
2088
2088
2089
2089
Throwable last_error = null ;
2090
2090
2091
+ boolean all_skipped = true ;
2092
+
2093
+ boolean ipv6_enabled = NetworkAdmin .getSingleton ().isIPV6Enabled ();
2094
+
2091
2095
for ( InetSocketAddress destination : url_addresses ){
2092
2096
2097
+ if ( destination .getAddress () instanceof Inet6Address && !ipv6_enabled ){
2098
+
2099
+ continue ;
2100
+ }
2101
+
2102
+ all_skipped = false ;
2103
+
2093
2104
try {
2094
2105
PRUDPPacketHandler handler = PRUDPPacketHandlerFactory .getHandler ( handler_port );
2095
2106
@@ -2344,6 +2355,11 @@ protected TRTrackerAnnouncerResponseImpl updateSupport() {
2344
2355
}
2345
2356
}
2346
2357
2358
+ if ( all_skipped ){
2359
+
2360
+ throw ( new Exception ( "IPv6 disabled" ));
2361
+ }
2362
+
2347
2363
if ( last_error != null ){
2348
2364
2349
2365
throw ( last_error );
You can’t perform that action at this time.
0 commit comments