Changeset 84 for trunk/src/control/torcontrol.cpp
- Timestamp:
- 01/13/06 23:32:35 (3 years ago)
- Files:
-
- 1 modified
-
trunk/src/control/torcontrol.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/control/torcontrol.cpp
r83 r84 122 122 TorControl::isConnected() 123 123 { 124 return (_controlConn.state() == QAbstractSocket::ConnectedState);124 return _controlConn.isValid(); 125 125 } 126 126 … … 131 131 */ 132 132 bool 133 TorControl::authenticate(QByteArray token, QString *errmsg) 134 { 135 ControlCommand cmd("AUTHENTICATE", QString(token)); 133 TorControl::authenticate(QString *errmsg) 134 { 135 VidaliaSettings settings; 136 ControlCommand cmd("AUTHENTICATE", QString(settings.getAuthToken())); 136 137 ControlReply reply; 137 138 … … 182 183 } 183 184 } 185 } else { 186 /* Sending the control command failed */ 187 return false; 184 188 } 185 189 return true; … … 195 199 if (getInfo(map, errmsg)) { 196 200 val = map.value(key); 201 return true; 197 202 } 198 203 return false;
