Skip to content

Commit

Permalink
Merge pull request #80 from Jigsaw-Code/bemasc-blocksalt
Browse files Browse the repository at this point in the history
Correct pointer type in cipher list
  • Loading branch information
fortuna authored Aug 27, 2020
2 parents 13f8610 + 0241d1c commit a666826
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ func (s *ssServer) loadConfig(filename string) error {
if !ok {
return fmt.Errorf("Only AEAD ciphers are supported. Found %v", keyConfig.Cipher)
}
cipherList.PushBack(shadowsocks.MakeCipherEntry(keyConfig.ID, aead, keyConfig.Secret))
entry := shadowsocks.MakeCipherEntry(keyConfig.ID, aead, keyConfig.Secret)
cipherList.PushBack(&entry)
}
for port := range s.ports {
portChanges[port] = portChanges[port] - 1
Expand Down

0 comments on commit a666826

Please sign in to comment.