diff --git a/src/jsp/index.jsp b/src/jsp/index.jsp
index 1d96fe6..b47e8c5 100644
--- a/src/jsp/index.jsp
+++ b/src/jsp/index.jsp
@@ -32,15 +32,15 @@
UDP Announce Support: <%=udp ? "yes" : "no"%>
<%
if (udp) {
- int port = ZzzOTController.udpPort();
- if (host != null) {
-%>
- UDP Announce URL: udp://<%=host%>:<%=port%>/
-<%
- }
%>
UDP Connection Lifetime: <%=torrents.getUDPLifetime() / 60%> minutes
<%
+ if (host != null) {
+ int port = ZzzOTController.udpPort();
+%>
+ UDP Announce URL: udp://<%=host%>:<%=port%>/
+<%
+ }
}
%>