Fixed tabs

This commit is contained in:
Mathias Hall-Andersen 2018-02-11 19:02:50 +01:00
parent 73cb1a1155
commit 743364f647
4 changed files with 392 additions and 392 deletions

View file

@ -10,12 +10,12 @@ import (
) )
const ( const (
ipcErrorIO = -int64(unix.EIO) ipcErrorIO = -int64(unix.EIO)
ipcErrorProtocol = -int64(unix.EPROTO) ipcErrorProtocol = -int64(unix.EPROTO)
ipcErrorInvalid = -int64(unix.EINVAL) ipcErrorInvalid = -int64(unix.EINVAL)
ipcErrorPortInUse = -int64(unix.EADDRINUSE) ipcErrorPortInUse = -int64(unix.EADDRINUSE)
socketDirectory = "/var/run/wireguard" socketDirectory = "/var/run/wireguard"
socketName = "%s.sock" socketName = "%s.sock"
) )
type UAPIListener struct { type UAPIListener struct {

View file

@ -11,10 +11,10 @@ import (
) )
const ( const (
ipcErrorIO = -int64(windows.ERROR_BROKEN_PIPE) ipcErrorIO = -int64(windows.ERROR_BROKEN_PIPE)
ipcErrorProtocol = -int64(windows.ERROR_INVALID_NAME) ipcErrorProtocol = -int64(windows.ERROR_INVALID_NAME)
ipcErrorInvalid = -int64(windows.ERROR_INVALID_PARAMETER) ipcErrorInvalid = -int64(windows.ERROR_INVALID_PARAMETER)
ipcErrorPortInUse = -int64(windows.ERROR_ALREADY_EXISTS) ipcErrorPortInUse = -int64(windows.ERROR_ALREADY_EXISTS)
) )
const PipeNameFmt = "\\\\.\\pipe\\wireguard-ipc-%s" const PipeNameFmt = "\\\\.\\pipe\\wireguard-ipc-%s"