mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-02 23:35:40 -05:00
hide space implementations from interfaces
This commit is contained in:
@@ -16,10 +16,10 @@ type DokodemoDoor struct {
|
||||
config Config
|
||||
accepting bool
|
||||
address v2net.Address
|
||||
space *app.Space
|
||||
space app.Space
|
||||
}
|
||||
|
||||
func NewDokodemoDoor(space *app.Space, config Config) *DokodemoDoor {
|
||||
func NewDokodemoDoor(space app.Space, config Config) *DokodemoDoor {
|
||||
return &DokodemoDoor{
|
||||
config: config,
|
||||
space: space,
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
type DokodemoDoorFactory struct {
|
||||
}
|
||||
|
||||
func (this DokodemoDoorFactory) Create(space *app.Space, rawConfig interface{}) (connhandler.InboundConnectionHandler, error) {
|
||||
func (this DokodemoDoorFactory) Create(space app.Space, rawConfig interface{}) (connhandler.InboundConnectionHandler, error) {
|
||||
config := rawConfig.(Config)
|
||||
return NewDokodemoDoor(space, config), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user