mirror of
https://bitbucket.org/jsuto/piler.git
synced 2026-10-01 12:50:20 +02:00
pilergetd support unencrypted connections too
This commit is contained in:
1 parent
e118705551
commit
86a236311d
6 files changed
+57
-38
No files matched your search
@@ -64,9 +64,10 @@ class ModelSearchMessage extends Model {
|
||||
|
||||
$l = fgets($sd, 4096);
|
||||
|
||||
fputs($sd, "AUTH " . PILERGETD_PASSWORD . "\r\n");
|
||||
|
||||
$l = fgets($sd, 4096);
|
||||
if(substr(PILERGETD_HOST, 0, 6) == 'ssl://') {
|
||||
fputs($sd, "AUTH " . PILERGETD_PASSWORD . "\r\n");
|
||||
$l = fgets($sd, 4096);
|
||||
}
|
||||
|
||||
Registry::set('sd', $sd);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user