From 7f340e0650a61f5f479ab39af2aa328e2db794d5 Mon Sep 17 00:00:00 2001 From: "altob.rd" Date: Sun, 19 Nov 2017 12:17:33 +0800 Subject: [PATCH] upd test --- controllers/Carpark.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/Carpark.php b/controllers/Carpark.php index 1531f00..35c85a2 100644 --- a/controllers/Carpark.php +++ b/controllers/Carpark.php @@ -1022,7 +1022,7 @@ class Carpark extends CI_Controller $error_str = ''; $service_port = 8068; - $address = "192.168.10.201"; + $address = empty($this->uri->segment(4)) ? "192.168.10.201" : "192.168.10." . $this->uri->segment(4); /* Create a TCP/IP socket. */ $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);