X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/03ddd26b2c98cde7754ffc50dacf4897683c57a7..df9ec3bdf5dd9f4596c0bdf48beb71fa26ac2e40:/connection.php?ds=inline
diff --git a/connection.php b/connection.php
index be01f48..ba17c90 100644
--- a/connection.php
+++ b/connection.php
@@ -1,9 +1,12 @@
$tls_verify));
-} catch (Exception $e) {
- die("Unable to connect to UnreaIRCd
");
+ $rpc = new UnrealIRCd\Connection
+ (
+ "wss://".UNREALIRCD_HOST.":".UNREALIRCD_PORT,
+ $api_login,
+ Array("tls_verify"=>$tls_verify)
+ );
+}
+catch (Exception $e)
+{
+ echo "Unable to connect to UnrealIRCd: ".$e->getMessage() . "
";
+ echo "Verify your connection details in config.php (rpc user, rpc password, host) and ".
+ "verify your UnrealIRCd configuration (listen block with listen::options::rpc and ".
+ "an rpc-user block with the correct IP allowed and the correct username and password).";
+ throw $e;
}