compatible filename peer conf

This commit is contained in:
mercury
2022-10-07 11:51:27 +04:00
parent 5290c9f991
commit 08cc408dd3
+1 -1
View File
@@ -205,7 +205,7 @@ class Bot
$client = $this->readClients()[$client];
$name = $this->getName($client['interface']);
$code = $this->createConfig($client);
$this->upload("$name.conf", $code);
$this->upload(preg_replace(['~\s+~', '~\(|\)~'], ['_', ''], $name) . ".conf", $code);
}
public function upload($name, $code)