Skip to content

Commit

Permalink
chore(spelling): fix typos (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzrehde authored Nov 11, 2023
1 parent dee39b9 commit c86de66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func New(cfg *config.Config) (*Server, error) {
// Use external IP when using `interface: any`, unless a FQDN is set
if bind == "0.0.0.0" && cfg.FQDN == "" {
fmt.Println("Retrieving the external IP...")
extIP, err := util.GetExernalIP()
extIP, err := util.GetExternalIP()
if err != nil {
panic(err)
}
Expand Down
4 changes: 2 additions & 2 deletions util/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func Interfaces(listAll bool) (map[string]string, error) {
return names, nil
}

// GetExernalIP of this host
func GetExernalIP() (net.IP, error) {
// GetExternalIP of this host
func GetExternalIP() (net.IP, error) {
consensus := externalip.DefaultConsensus(nil, nil)
// Get your IP, which is never <nil> when err is <nil>
ip, err := consensus.ExternalIP()
Expand Down

0 comments on commit c86de66

Please sign in to comment.