Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 committed Jun 11, 2024
1 parent 2135429 commit a41ff81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions adapter/outbound/direct.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package outbound
import (
"context"
"errors"
"fmt"
"net/netip"
"os"
"strconv"
Expand All @@ -29,6 +30,7 @@ type DirectOption struct {

// DialContext implements C.ProxyAdapter
func (d *Direct) DialContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (C.Conn, error) {
fmt.Println(DisableLoopBackDetector)
if !features.CMFA || !DisableLoopBackDetector {
if err := d.loopBack.CheckConn(metadata); err != nil {
return nil, err
Expand All @@ -45,6 +47,7 @@ func (d *Direct) DialContext(ctx context.Context, metadata *C.Metadata, opts ...

// ListenPacketContext implements C.ProxyAdapter
func (d *Direct) ListenPacketContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (C.PacketConn, error) {
fmt.Println(DisableLoopBackDetector)
if !features.CMFA || !DisableLoopBackDetector {
if err := d.loopBack.CheckPacketConn(metadata); err != nil {
return nil, err
Expand Down

0 comments on commit a41ff81

Please sign in to comment.