mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-17 22:13:50 +02:00
Refactor some stuff
This commit is contained in:
parent
7264e7b92f
commit
3839058eb8
2 changed files with 26 additions and 24 deletions
|
@ -51,10 +51,10 @@ type HandlerConf struct {
|
|||
TokenAuth bool
|
||||
}
|
||||
|
||||
func NewHandler(in transport.Transport, out transport.Transport, conf *HandlerConf) *Handler {
|
||||
func NewHandler(s *SessionInfo, conf *HandlerConf) *Handler {
|
||||
h := &Handler{
|
||||
TransportIn: in,
|
||||
TransportOut: out,
|
||||
TransportIn: s.TransportIn,
|
||||
TransportOut: s.TransportOut,
|
||||
State: SERVER_STATE_INITIAL,
|
||||
RedirectFlags: makeRedirectFlags(conf.RedirectFlags),
|
||||
IdleTimeout: conf.IdleTimeout,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue