Browse Source

Run go fmt

pull/2757/head
loyalsoldier 4 years ago
parent
commit
7a789fed37
No known key found for this signature in database
GPG Key ID: 23829BBC1ACF2C90
  1. 8
      proxy/shadowsocks/config.go
  2. 2
      proxy/shadowsocks/protocol.go

8
proxy/shadowsocks/config.go

@ -19,8 +19,8 @@ import (
// MemoryAccount is an account type converted from Account.
type MemoryAccount struct {
Cipher Cipher
Key []byte
Cipher Cipher
Key []byte
}
// Equals implements protocol.Account.Equals().
@ -87,8 +87,8 @@ func (a *Account) AsAccount() (protocol.Account, error) {
return nil, newError("failed to get cipher").Base(err)
}
return &MemoryAccount{
Cipher: cipher,
Key: passwordToCipherKey([]byte(a.Password), cipher.KeySize()),
Cipher: cipher,
Key: passwordToCipherKey([]byte(a.Password), cipher.KeySize()),
}, nil
}

2
proxy/shadowsocks/protocol.go

@ -19,7 +19,7 @@ import (
)
const (
Version = 1
Version = 1
)
var addrParser = protocol.NewAddressParser(

Loading…
Cancel
Save