diff --git a/hyproxy-cli.php b/hyproxy-cli.php index 9d2fb83..2593e62 100644 --- a/hyproxy-cli.php +++ b/hyproxy-cli.php @@ -136,11 +136,11 @@ } $filebytes = file_put_contents(_HYCONF.$row['server_name'].'.conf', $conf); //写入内容 //access_log_path不存在的话创建 - if (file_exists(!$row['access_log_path'])) { + if (!file_exists($row['access_log_path'])) { file_put_contents($row['access_log_path'], ''); } //error_log_path不存在的话创建 - if (file_exists(!$row['error_log_path'])) { + if (!file_exists($row['error_log_path'])) { file_put_contents($row['error_log_path'], ''); } }