Skip to content

Commit

Permalink
Changed comment position
Browse files Browse the repository at this point in the history
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
  • Loading branch information
juanfont and kradalby committed Mar 16, 2022
1 parent d13338a commit 98ac88d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,8 @@ func (h *Headscale) Serve() error {
h.DERPMap = GetDERPMap(h.cfg.DERP)

if h.cfg.DERP.ServerEnabled {
if h.cfg.DERP.STUNAddr == "" { // When embedded DERP is enabled we always need a STUN server address, embedded or external
// When embedded DERP is enabled we always need a STUN server address, embedded or external
if h.cfg.DERP.STUNAddr == "" {
return errSTUNAddressNotSet
}

Expand Down

0 comments on commit 98ac88d

Please sign in to comment.