wip
This commit is contained in:
parent
9cca1613a5
commit
eabd886ee3
@ -2,11 +2,9 @@ package vhost
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"unsafe"
|
|
||||||
|
|
||||||
"github.com/jpillora/ipfilter"
|
"github.com/jpillora/ipfilter"
|
||||||
)
|
)
|
||||||
@ -71,7 +69,6 @@ func (r *Routers) Add(domain, location, httpUser string, payload interface{}) er
|
|||||||
ipValidator: ipValidator,
|
ipValidator: ipValidator,
|
||||||
payload: payload,
|
payload: payload,
|
||||||
}
|
}
|
||||||
fmt.Printf("Size of %T struct: %d bytes", vr, unsafe.Sizeof(*vr))
|
|
||||||
vrs = append(vrs, vr)
|
vrs = append(vrs, vr)
|
||||||
sort.Sort(sort.Reverse(ByLocation(vrs)))
|
sort.Sort(sort.Reverse(ByLocation(vrs)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user