diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-11-19 00:21:58 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-11-19 00:21:58 +0100 |
commit | a79fdc13a2d7be07b20ea499da9210ebe69f1958 (patch) | |
tree | 15e8f2cc4512130efe83ed532deff53f801f6df3 /src/uapi.go | |
parent | d10126f883ad39567248540347b5469956ab8b2e (diff) |
Begin generic Bind implementation
Diffstat (limited to 'src/uapi.go')
-rw-r--r-- | src/uapi.go | 5 |
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 |