summaryrefslogtreecommitdiffhomepage
path: root/src/uapi.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-11-19 00:21:58 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-11-19 00:21:58 +0100
commita79fdc13a2d7be07b20ea499da9210ebe69f1958 (patch)
tree15e8f2cc4512130efe83ed532deff53f801f6df3 /src/uapi.go
parentd10126f883ad39567248540347b5469956ab8b2e (diff)
Begin generic Bind implementation
Diffstat (limited to 'src/uapi.go')
-rw-r--r--src/uapi.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/uapi.go b/src/uapi.go
index 670ecc4..dc8be66 100644
--- a/src/uapi.go
+++ b/src/uapi.go
@@ -260,9 +260,8 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError {
err := func() error {
peer.mutex.Lock()
defer peer.mutex.Unlock()
-
- endpoint := NewEndpoint()
- if err := endpoint.SetDst(value); err != nil {
+ endpoint, err := CreateEndpoint(value)
+ if err != nil {
return err
}
peer.endpoint = endpoint