https://shadowsocks.org/en/config/quick-guide.html
()
| 67 | |
| 68 | // https://shadowsocks.org/en/config/quick-guide.html |
| 69 | func (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 | |
| 75 | func ParseSSLink(link string) (*Shadowsocks, error) { |
| 76 | if !strings.HasPrefix(link, "ss://") { |
nothing calls this directly
no test coverage detected