@ -55,7 +55,7 @@ func (d *DefaultDispatcher) Dispatch(ctx context.Context, destination net.Destin
ctx = proxy . ContextWithTarget ( ctx , destination )
ctx = proxy . ContextWithTarget ( ctx , destination )
outbound := ray . NewRay ( ctx )
outbound := ray . NewRay ( ctx )
snifferList := proxyman . Protoco SniffersFromContext( ctx )
snifferList := proxyman . Protoco l SniffersFromContext( ctx )
if destination . Address . Family ( ) . IsDomain ( ) || len ( snifferList ) == 0 {
if destination . Address . Family ( ) . IsDomain ( ) || len ( snifferList ) == 0 {
go d . routedDispatch ( ctx , outbound , destination )
go d . routedDispatch ( ctx , outbound , destination )
} else {
} else {
@ -110,7 +110,7 @@ func (d *DefaultDispatcher) routedDispatch(ctx context.Context, outbound ray.Out
newError ( "taking detour [" , tag , "] for [" , destination , "]" ) . WithContext ( ctx ) . WriteToLog ( )
newError ( "taking detour [" , tag , "] for [" , destination , "]" ) . WithContext ( ctx ) . WriteToLog ( )
dispatcher = handler
dispatcher = handler
} else {
} else {
newError ( "non existing tag: ", tag ) . AtWarning ( ) . WithContext ( ctx ) . WriteToLog ( )
newError ( "non existing tag: ", tag ) . AtWarning ( ) . WithContext ( ctx ) . WriteToLog ( )
}
}
} else {
} else {
newError ( "default route for " , destination ) . WithContext ( ctx ) . WriteToLog ( )
newError ( "default route for " , destination ) . WithContext ( ctx ) . WriteToLog ( )