Browse Source

Update WebServer.php

walkor 7 năm trước cách đây
mục cha
commit
1efb0356d9
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      WebServer.php

+ 3 - 0
WebServer.php

@@ -52,6 +52,9 @@ class WebServer extends Worker
      */
     public function addRoot($domain, $config)
     {
+	if (is_string($config)) {
+            $config = array('root' => $config);
+	}
         $this->serverRoot[$domain] = $config;
     }