(inbound *Inbound, account api.Account)
| 50 | } |
| 51 | |
| 52 | func accountForAPI(inbound *Inbound, account api.Account) api.Account { |
| 53 | vlessAccount, ok := account.(*api.VlessAccount) |
| 54 | if !ok { |
| 55 | return account |
| 56 | } |
| 57 | |
| 58 | overrideFlow := inboundFlow(inbound) |
| 59 | if overrideFlow == "" { |
| 60 | return account |
| 61 | } |
| 62 | |
| 63 | copy := *vlessAccount |
| 64 | copy.Flow = overrideFlow |
| 65 | return © |
| 66 | } |
| 67 | |
| 68 | func checkShadowsocks2022(method string, account api.ShadowsocksAccount) api.ShadowsocksAccount { |
| 69 | account.Password = common.EnsureBase64Password(account.Password, method) |