Skip to content

Commit

Permalink
Fix metadata RIVM-106
Browse files Browse the repository at this point in the history
  • Loading branch information
vikulin committed Aug 6, 2023
1 parent bbbfa8e commit 451ddeb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ package core

import (
"crypto/ed25519"
"encoding/hex"

iwt "github.com/Arceliar/ironwood/types"
)

func (c *Core) _applyOption(opt SetupOption) {
switch v := opt.(type) {
case Domain:
d, _ := hex.DecodeString(string(v))
c.config.domain = iwt.Domain(d)
c.config.domain = iwt.Domain(v)
case Peer:
c.config._peers[v] = nil
case ListenAddress:
Expand All @@ -33,7 +31,7 @@ type SetupOption interface {
isSetupOption()
}

type Domain string
type Domain iwt.Domain

type ListenAddress string
type Peer struct {
Expand Down

0 comments on commit 451ddeb

Please sign in to comment.