Skip to content

Commit

Permalink
feat: support mieru protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
snakem982 committed Oct 14, 2024
1 parent 0d5dce4 commit 89dc162
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions adapter/outbound/mieru.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ func (m *Mieru) DialContext(ctx context.Context, metadata *C.Metadata, _ ...dial
return NewConn(c, m), nil
}

// SupportWithDialer implements C.ProxyAdapter
func (m *Mieru) SupportWithDialer() C.NetWork {
return C.TCP
}

func NewMieru(option MieruOption) (*Mieru, error) {
config, err := buildMieruClientConfig(option)
if err != nil {
Expand Down Expand Up @@ -181,8 +176,7 @@ func buildMieruClientConfig(option MieruOption) (*mieruclient.ClientConfig, erro
Servers: []*mierupb.ServerEndpoint{server},
Mtu: proto.Int32(int32(option.MTU)),
Multiplexing: &mierupb.MultiplexingConfig{
// Multiplexing doesn't work well with connection tracking.
Level: mierupb.MultiplexingLevel_MULTIPLEXING_OFF.Enum(),
Level: mierupb.MultiplexingLevel_MULTIPLEXING_HIGH.Enum(),
},
},
}, nil
Expand Down

0 comments on commit 89dc162

Please sign in to comment.