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