MCPcopy
hub / github.com/zu1k/proxypool / Link

Method Link

pkg/proxy/shadowsocks.go:69–73  ·  view source on GitHub ↗

https://shadowsocks.org/en/config/quick-guide.html

()

Source from the content-addressed store, hash-verified

67
68// https://shadowsocks.org/en/config/quick-guide.html
69func (ss Shadowsocks) Link() (link string) {
70 payload := fmt.Sprintf("%s:%s@%s:%d", ss.Cipher, ss.Password, ss.Server, ss.Port)
71 payload = tool.Base64EncodeString(payload, false)
72 return fmt.Sprintf("ss://%s#%s", payload, ss.Name)
73}
74
75func ParseSSLink(link string) (*Shadowsocks, error) {
76 if !strings.HasPrefix(link, "ss://") {

Callers

nothing calls this directly

Calls 1

Base64EncodeStringFunction · 0.92

Tested by

no test coverage detected