mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-02 02:42:47 +02:00
auth moved from websockets to session.
This commit is contained in:
parent
3ea979ed47
commit
c10b2212d1
8 changed files with 65 additions and 53 deletions
6
neko.go
6
neko.go
|
@ -64,8 +64,8 @@ func init() {
|
|||
Root: &config.Root{},
|
||||
Capture: &config.Capture{},
|
||||
WebRTC: &config.WebRTC{},
|
||||
Session: &config.Session{},
|
||||
Server: &config.Server{},
|
||||
WebSocket: &config.WebSocket{},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -103,8 +103,8 @@ type Configs struct {
|
|||
Root *config.Root
|
||||
Capture *config.Capture
|
||||
WebRTC *config.WebRTC
|
||||
Session *config.Session
|
||||
Server *config.Server
|
||||
WebSocket *config.WebSocket
|
||||
}
|
||||
|
||||
type Neko struct {
|
||||
|
@ -146,6 +146,7 @@ func (neko *Neko) Start() {
|
|||
|
||||
neko.sessionManager = session.New(
|
||||
neko.captureManager,
|
||||
neko.Configs.Session,
|
||||
)
|
||||
|
||||
neko.webSocketManager = websocket.New(
|
||||
|
@ -153,7 +154,6 @@ func (neko *Neko) Start() {
|
|||
neko.desktopManager,
|
||||
neko.captureManager,
|
||||
neko.webRTCManager,
|
||||
neko.Configs.WebSocket,
|
||||
)
|
||||
neko.webSocketManager.Start()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue