Fixed error with Return OnionSkins append function

This commit is contained in:
David Vennik
2022-12-19 13:30:14 +00:00
parent 1b531539cd
commit a6a006f16b
2 changed files with 6 additions and 6 deletions

View File

@@ -24,8 +24,8 @@ func (o OnionSkins) Exit(port uint16, ciphers [3]sha256.Hash,
return append(o, &Exit{Port: port, Cipher: ciphers, Bytes: payload}) return append(o, &Exit{Port: port, Cipher: ciphers, Bytes: payload})
} }
func (o OnionSkins) Return(ip net.IP, fwd, rtn pub.Key) OnionSkins { func (o OnionSkins) Return(ip net.IP, rtn pub.Key) OnionSkins {
return append(o, &Return{IP: ip, Forward: fwd, Return: rtn}) return append(o, &Return{IP: ip, Key: rtn})
} }
func (o OnionSkins) Cipher(id nonce.ID, key pub.Key) OnionSkins { func (o OnionSkins) Cipher(id nonce.ID, key pub.Key) OnionSkins {
return append(o, &Cipher{ID: id, Key: key.ToBytes()}) return append(o, &Cipher{ID: id, Key: key.ToBytes()})

View File

@@ -13,11 +13,11 @@ var (
// GitRef is the gitref, as in refs/heads/branchname. // GitRef is the gitref, as in refs/heads/branchname.
GitRef = "refs/heads/main" GitRef = "refs/heads/main"
// ParentGitCommit is the commit hash of the parent HEAD. // ParentGitCommit is the commit hash of the parent HEAD.
ParentGitCommit = "feabf7f2666ba523f71a346b30611e00e0b639dd" ParentGitCommit = "3391ff428d2de9a8a824a6066b4b0e842e264042"
// BuildTime stores the time when the current binary was built. // BuildTime stores the time when the current binary was built.
BuildTime = "2022-12-19T13:27:32Z" BuildTime = "2022-12-19T13:30:14Z"
// SemVer lists the (latest) git tag on the build. // SemVer lists the (latest) git tag on the build.
SemVer = "v0.0.189" SemVer = "v0.0.190"
// PathBase is the path base returned from runtime caller. // PathBase is the path base returned from runtime caller.
PathBase = "/home/loki/src/github.com/Indra-Labs/indra/" PathBase = "/home/loki/src/github.com/Indra-Labs/indra/"
// Major is the major number from the tag. // Major is the major number from the tag.
@@ -25,7 +25,7 @@ var (
// Minor is the minor number from the tag. // Minor is the minor number from the tag.
Minor = 0 Minor = 0
// Patch is the patch version number from the tag. // Patch is the patch version number from the tag.
Patch = 189 Patch = 190
) )
// Version returns a pretty printed version information string. // Version returns a pretty printed version information string.