diff --git a/src/main/java/com/threerings/nio/PolicyServer.java b/src/main/java/com/threerings/nio/PolicyServer.java
index fd277f108..54f2fa271 100644
--- a/src/main/java/com/threerings/nio/PolicyServer.java
+++ b/src/main/java/com/threerings/nio/PolicyServer.java
@@ -41,7 +41,7 @@ import static com.threerings.NaryaLog.log;
/**
* Binds to a port and responds to "xmlsocket" requests on it with a policy file allowing access
- * to all ports on a given hostname.
+ * to all ports from any host.
*/
@Singleton
public class PolicyServer extends ConnectionManager
@@ -54,26 +54,22 @@ public class PolicyServer extends ConnectionManager
}
/**
- * Accepts xmlsocket requests on socketPolicyPort and responds that
- * publicServerHost may connect to any port on this host.
+ * Accepts xmlsocket requests on socketPolicyPort and responds any host may
+ * connect to any port on this host.
*/
- public void init (int socketPolicyPort, String publicServerHost)
+ public void init (int socketPolicyPort)
{
_acceptor =
- new ServerSocketChannelAcceptor(publicServerHost, new int[] { socketPolicyPort }, this);
+ new ServerSocketChannelAcceptor(null, new int[] { socketPolicyPort }, this);
// build the XML once and for all
- StringBuilder policy = new StringBuilder("\n").
- append("\n");
+ StringBuilder policy = new StringBuilder("\n");
// if we're running on 843, serve a master policy file
if (socketPolicyPort == MASTER_PORT) {
policy.append(" \n");
}
- for (String host : new String[] { publicServerHost }) {
- policy.append(" \n");
- }
+ policy.append(" \n");
policy.append("\n");
try {