mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-25 07:20:44 +00:00
initializable apps
This commit is contained in:
1 parent
7765fedd78
commit
3ded18a75b
12 files changed
+188
-65
No files matched your search
@@ -58,7 +58,7 @@ func NewPoint(pConfig *Config) (*Point, error) {
|
||||
vpoint.space = app.NewSpace()
|
||||
vpoint.space.BindApp(proxyman.APP_ID_INBOUND_MANAGER, vpoint)
|
||||
|
||||
outboundHandlerManager := &proxyman.DefaultOutboundHandlerManager{}
|
||||
outboundHandlerManager := proxyman.NewDefaultOutboundHandlerManager()
|
||||
vpoint.space.BindApp(proxyman.APP_ID_OUTBOUND_MANAGER, outboundHandlerManager)
|
||||
|
||||
dnsConfig := pConfig.DNSConfig
|
||||
@@ -144,6 +144,10 @@ func NewPoint(pConfig *Config) (*Point, error) {
|
||||
}
|
||||
}
|
||||
|
||||
if err := vpoint.space.Initialize(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return vpoint, nil
|
||||
}
|
||||
|
||||
@@ -192,3 +196,7 @@ func (this *Point) GetHandler(tag string) (proxy.InboundHandler, int) {
|
||||
}
|
||||
return handler.GetConnectionHandler()
|
||||
}
|
||||
|
||||
func (this *Point) Release() {
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user