Changeset 677 for trunk/Modules/NetworkConfigRouterOS/RouterboardAPI.php
- Timestamp:
- Jul 25, 2014, 9:12:10 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigRouterOS/RouterboardAPI.php
r674 r677 12 12 var $Socket; // Variable for storing socket resource 13 13 var $Debug; 14 var $SSL; // If SSL API connection is used. You need also change port to 8729 14 15 15 16 function __construct() … … 21 22 $this->Timeout = 3; 22 23 $this->Debug = false; 24 $this->SSL = false; 23 25 } 24 26 … … 44 46 { 45 47 if($this->Connected) $this->Disconnect(); 48 if($this->SSL) 49 { 50 $IP = 'ssl://'.$IP; 51 } 52 46 53 $this->Socket = @fsockopen($IP, $this->Port, $this->ErrorNo, $this->ErrorStr, $this->Timeout); 47 54 if($this->Socket)
Note:
See TracChangeset
for help on using the changeset viewer.