tor: rename dial to dialProxy

This commit renames dial to be dialProxy to make the connections
clearer. It also cleans the column width and provides more verbose error
messages.
This commit is contained in:
yyforyongyu committed 2021-10-11 13:11:52 +08:00
1 parent 64211da40d
commit 1ebc3b82c8
3 files changed
+30 -25

No files matched your search

+3 -3
View File
@@ -114,9 +114,9 @@ func NewController(controlAddr string, targetIPAddress string,
}
}
// Start establishes and authenticates the connection between the controller and
// a Tor server. Once done, the controller will be able to send commands and
// expect responses.
// Start establishes and authenticates the connection between the controller
// and a Tor server. Once done, the controller will be able to send commands
// and expect responses.
func (c *Controller) Start() error {
if !atomic.CompareAndSwapInt32(&c.started, 0, 1) {
return nil