ing
This commit is contained in:
parent
b9805735de
commit
6bcf814179
|
@ -1,10 +1,9 @@
|
||||||
package client
|
package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
|
||||||
"net"
|
"net"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (ch *ClientHandlers) Connect() (io.ReadWriteCloser, error) {
|
func (ch *ClientHandlers) Connect() (net.Conn, error) {
|
||||||
return net.Dial("unix", ch.addr)
|
return net.Dial("unix", ch.addr)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package client
|
package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
"net"
|
||||||
|
|
||||||
"gopkg.in/natefinch/npipe.v2"
|
"gopkg.in/natefinch/npipe.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (ch *ClientHandlers) Connect() (io.ReadWriteCloser, error) {
|
func (ch *ClientHandlers) Connect() (net.Conn, error) {
|
||||||
return npipe.Dial(ch.addr)
|
return npipe.Dial(ch.addr)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user