Skip to content

Commit

Permalink
fix: the node mode is incorrectly (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
venjiang authored Nov 24, 2021
1 parent 6665051 commit 624e716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
vendor/
*.temp
.vscode
.DS_Store
4 changes: 2 additions & 2 deletions spec/tlv.t.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ func (t T) IsNodeMode() bool {

// SetNodeMode will set T to indicates this packet contains
// other packets.
func (t T) SetNodeMode(flag bool) {
func (t *T) SetNodeMode(flag bool) {
if flag {
t |= flagBitNode
*t |= flagBitNode
}
}

Expand Down

0 comments on commit 624e716

Please sign in to comment.