New web library (http/https)
[nikiroo-utils.git] / src / be / nikiroo / fanfix / library / RemoteLibraryServer.java
index f92c37e8e2ecaf6a1b7604d6b0c914a56b03131a..c150a01b6f8a14f68279fc4bb7358f3374a85e10 100644 (file)
@@ -70,16 +70,16 @@ public class RemoteLibraryServer extends ServerObject {
         * Note: the key we use here is the encryption key (it must not contain a
         * subkey).
         * 
-        * @param key
-        *            the key that will restrict access to this server
-        * @param port
-        *            the port to listen on
-        * 
         * @throws IOException
         *             in case of I/O error
         */
-       public RemoteLibraryServer(String key, int port) throws IOException {
-               super("Fanfix remote library", port, key);
+       public RemoteLibraryServer() throws IOException {
+               super("Fanfix remote library",
+                               Instance.getInstance().getConfig()
+                                               .getInteger(Config.SERVER_PORT),
+                               Instance.getInstance().getConfig()
+                                               .getString(Config.SERVER_KEY));
+               
                setTraceHandler(Instance.getInstance().getTraceHandler());
        }