mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-19 23:03:08 +00:00
advanced end 2 end test
This commit is contained in:
1 parent
223ff7d561
commit
1a25931944
9 files changed
+232
-139
No files matched your search
@@ -47,7 +47,7 @@ func (this *InboundDetourHandler) Initialize() error {
|
||||
// Starts the inbound connection handler.
|
||||
func (this *InboundDetourHandler) Start() error {
|
||||
for _, ich := range this.ich {
|
||||
return retry.Timed(100 /* times */, 100 /* ms */).On(func() error {
|
||||
err := retry.Timed(100 /* times */, 100 /* ms */).On(func() error {
|
||||
err := ich.handler.Listen(ich.port)
|
||||
if err != nil {
|
||||
log.Error("Failed to start inbound detour on port %d: %v", ich.port, err)
|
||||
@@ -55,6 +55,9 @@ func (this *InboundDetourHandler) Start() error {
|
||||
}
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in new issue
Block a user