[windows] fix ntlm usage with tcp socket and buffers setting
This commit is contained in:
parent
9e1faedd54
commit
250f250c42
@ -49,7 +49,7 @@ func (g *Gateway) setSendReceiveBuffers(conn net.Conn) error {
|
||||
if !ptrSysFd.IsValid() {
|
||||
return errors.New("cannot find Sysfd field")
|
||||
}
|
||||
fd := int(ptrSysFd.Int())
|
||||
fd := ptrSysFd.Uint()
|
||||
|
||||
if g.ReceiveBuf > 0 {
|
||||
err := syscall.SetsockoptInt(syscall.Handle(fd), syscall.SOL_SOCKET, syscall.SO_RCVBUF, g.ReceiveBuf)
|
||||
|
||||
@ -12,10 +12,6 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
protocolGrpc = "unix"
|
||||
)
|
||||
|
||||
type BasicAuthHandler struct {
|
||||
SocketAddress string
|
||||
Timeout int
|
||||
|
||||
7
cmd/rdpgw/web/basic_unix.go
Normal file
7
cmd/rdpgw/web/basic_unix.go
Normal file
@ -0,0 +1,7 @@
|
||||
// +build !windows
|
||||
|
||||
package web
|
||||
|
||||
const (
|
||||
protocolGrpc = "unix"
|
||||
)
|
||||
7
cmd/rdpgw/web/basic_windows.go
Normal file
7
cmd/rdpgw/web/basic_windows.go
Normal file
@ -0,0 +1,7 @@
|
||||
// +build windows
|
||||
|
||||
package web
|
||||
|
||||
const (
|
||||
protocolGrpc = "tcp"
|
||||
)
|
||||
Loading…
Reference in New Issue
Block a user