Changed comment position

Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
This commit is contained in:
Juan Font 2022-03-16 18:45:34 +01:00 committed by GitHub
parent d13338a9fb
commit 98ac88d5ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

3
app.go
View File

@ -501,7 +501,8 @@ func (h *Headscale) Serve() error {
h.DERPMap = GetDERPMap(h.cfg.DERP) h.DERPMap = GetDERPMap(h.cfg.DERP)
if h.cfg.DERP.ServerEnabled { 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 return errSTUNAddressNotSet
} }