Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
lilendian0x00 committed Dec 22, 2023
1 parent 152cae6 commit a632826
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion xray/shadowsocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

func (s *Shadowsocks) Parse(configLink string) error {
if !strings.HasPrefix(configLink, "ss://") {
return fmt.Errorf("vmess unreconized: %s", configLink)
return fmt.Errorf("shadowsocks unreconized: %s", configLink)
}

uri, err := url.Parse(configLink)
Expand Down Expand Up @@ -117,3 +117,7 @@ func (s *Shadowsocks) BuildOutboundDetourConfig(allowInsecure bool) (*conf.Outbo
out.Settings = &oset
return out, nil
}

func (s *Shadowsocks) BuildInboundDetourConfig() (*conf.InboundDetourConfig, error) {
return nil, nil
}
6 changes: 5 additions & 1 deletion xray/trojan.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func (t *Trojan) Parse(configLink string) error {
if !strings.HasPrefix(configLink, "trojan://") {
return fmt.Errorf("vmess unreconized: %s", configLink)
return fmt.Errorf("trojan unreconized: %s", configLink)
}
uri, err := url.Parse(configLink)
if err != nil {
Expand Down Expand Up @@ -272,3 +272,7 @@ func (t *Trojan) BuildOutboundDetourConfig(allowInsecure bool) (*conf.OutboundDe
out.Settings = &oset
return out, nil
}

func (v *Trojan) BuildInboundDetourConfig() (*conf.InboundDetourConfig, error) {
return nil, nil
}
6 changes: 5 additions & 1 deletion xray/vless.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func (v *Vless) Parse(configLink string) error {
if !strings.HasPrefix(configLink, "vless://") {
return fmt.Errorf("vmess unreconized: %s", configLink)
return fmt.Errorf("vless unreconized: %s", configLink)
}

uri, err := url.Parse(configLink)
Expand Down Expand Up @@ -289,3 +289,7 @@ func (v *Vless) BuildOutboundDetourConfig(allowInsecure bool) (*conf.OutboundDet
out.Settings = &oset
return out, nil
}

func (v *Vless) BuildInboundDetourConfig() (*conf.InboundDetourConfig, error) {
return nil, nil
}

0 comments on commit a632826

Please sign in to comment.