This commit is contained in:
ziv-codefresh 2022-09-28 16:53:08 +03:00
parent 9cca1613a5
commit eabd886ee3

View File

@ -2,11 +2,9 @@ package vhost
import (
"errors"
"fmt"
"sort"
"strings"
"sync"
"unsafe"
"github.com/jpillora/ipfilter"
)
@ -71,7 +69,6 @@ func (r *Routers) Add(domain, location, httpUser string, payload interface{}) er
ipValidator: ipValidator,
payload: payload,
}
fmt.Printf("Size of %T struct: %d bytes", vr, unsafe.Sizeof(*vr))
vrs = append(vrs, vr)
sort.Sort(sort.Reverse(ByLocation(vrs)))