This commit is contained in:
crusader 2017-11-01 15:49:31 +09:00
parent b9805735de
commit 6bcf814179
2 changed files with 3 additions and 4 deletions

View File

@ -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)
}

View File

@ -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)
}