config.go 433 B

123456789101112131415161718
  1. package hysteria2
  2. import (
  3. "github.com/v2fly/v2ray-core/v5/common/protocol"
  4. )
  5. // MemoryAccount is an account type converted from Account.
  6. type MemoryAccount struct{}
  7. // AsAccount implements protocol.AsAccount.
  8. func (a *Account) AsAccount() (protocol.Account, error) {
  9. return &MemoryAccount{}, nil
  10. }
  11. // Equals implements protocol.Account.Equals().
  12. func (a *MemoryAccount) Equals(another protocol.Account) bool {
  13. return false
  14. }