()
| 154 | } |
| 155 | |
| 156 | func (sa *ShadowsocksTcpAccount) CipherType() string { |
| 157 | return sa.Method |
| 158 | } |
| 159 | |
| 160 | func (sa *ShadowsocksTcpAccount) Message() (*serial.TypedMessage, error) { |
| 161 | return ToTypedMessage(&shadowsocks.Account{Password: sa.Password, CipherType: shadowsocks.CipherType(CipherType_value[sa.Method])}) |