mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-02-10 18:07:44 +00:00
[windows] fix ntlm usage with tcp socket and buffers setting
This commit is contained in:
parent
0d74a8c5a3
commit
a3efd43bf1
@ -7,4 +7,4 @@ import (
|
||||
// the fd arg to syscall.SetsockoptInt on Windows is of type syscall.Handle
|
||||
func int64ToFd(n int64) syscall.Handle {
|
||||
return syscall.Handle(n)
|
||||
}
|
||||
}
|
||||
|
||||
@ -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