From 568ce37229f8f7dd9025b4cfe7e06ce811b2e633 Mon Sep 17 00:00:00 2001 From: nathan boileau Date: Fri, 6 Jan 2023 13:49:32 +0100 Subject: [PATCH] test --- WEB/Client/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WEB/Client/Client.php b/WEB/Client/Client.php index 21c10fcc..4f1e1f08 100644 --- a/WEB/Client/Client.php +++ b/WEB/Client/Client.php @@ -7,7 +7,7 @@ class Client{ // Créer une socket var_dump(socket_create(AF_INET, SOCK_STREAM,0)); $this->socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) or die("la socket n'a pas pu être créée"); - socket_bind($this->socket,'0.0.0.0', 4000) or die("la socket n'a pas pu être attachée à l'adresse ip et au port"); + socket_bind($this->socket, pg_host(), 4000) or die("la socket n'a pas pu être attachée à l'adresse ip et au port"); } public static function getInstance() {