Skip to content

Commit

Permalink
chore: deprecated the relay group type, please using dialer-proxy ins…
Browse files Browse the repository at this point in the history
…tead
  • Loading branch information
wwqgtxx committed Jun 15, 2024
1 parent 75c16f9 commit ad5bc51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adapter/outboundgroup/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/metacubex/mihomo/component/proxydialer"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/constant/provider"
"github.com/metacubex/mihomo/log"
)

type Relay struct {
Expand Down Expand Up @@ -149,6 +150,7 @@ func (r *Relay) Addr() string {
}

func NewRelay(option *GroupCommonOption, providers []provider.ProxyProvider) *Relay {
log.Warnln("The group [%s] with relay type is deprecated, please using dialer-proxy instead", option.Name)
return &Relay{
GroupBase: NewGroupBase(GroupBaseOption{
outbound.BaseOption{
Expand Down

0 comments on commit ad5bc51

Please sign in to comment.