Skip to content

Commit

Permalink
working with status
Browse files Browse the repository at this point in the history
  • Loading branch information
Aptimex committed Aug 15, 2024
1 parent 8602504 commit 659da33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (c statusCmdConfig) Run() {
e2ee: %v...
api: %v
routes: %v `, c.e2eeConfig.GetNickname(), c.relayConfig.GetPublicKey()[:8], c.e2eeConfig.GetPublicKey()[:8], api, strings.Join(ips, ","))))
routes: %v `, c.peerConfig.GetNickname(), c.relayConfig.GetPublicKey()[:8], c.e2eeConfig.GetPublicKey()[:8], api, strings.Join(ips, ","))))
child, err := t.Child(0)
check("could not build tree", err)
treeTraversal(node.children[i], child)
Expand Down
4 changes: 2 additions & 2 deletions src/peer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ func ParseConfig(filename string) (c Config, err error) {
return c, e
}
err = c.SetMTU(mtu)
case "nickname":
err = c.SetNickname(value)
//case "nickname":
//err = c.SetNickname(value)
}
if err != nil {
return c, err
Expand Down
5 changes: 4 additions & 1 deletion src/peer/peer_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ func GetPeerConfig(args PeerConfigArgs) (PeerConfig, error) {
}

if args.Nickname != "" {
c.SetNickname(args.Nickname)
err = c.SetNickname(args.Nickname)
if err != nil {
return PeerConfig{}, err
}
}

return c, nil
Expand Down

0 comments on commit 659da33

Please sign in to comment.