You've already forked armbian-router
mirror of
https://github.com/armbian/armbian-router.git
synced 2026-01-06 10:37:03 -08:00
fix rules are not applied
This commit is contained in:
committed by
M. Efe Çetin
parent
7af1480bd6
commit
fa16f67363
15
config.go
15
config.go
@@ -3,6 +3,14 @@ package redirector
|
||||
import (
|
||||
"crypto/tls"
|
||||
"crypto/x509"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/armbian/redirector/db"
|
||||
lru "github.com/hashicorp/golang-lru"
|
||||
"github.com/oschwald/maxminddb-golang"
|
||||
@@ -11,12 +19,6 @@ import (
|
||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||
"github.com/samber/lo"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Config represents our application's configuration.
|
||||
@@ -281,6 +283,7 @@ func (r *Redirector) addServer(server ServerConfig, u *url.URL) (*Server, error)
|
||||
Continent: server.Continent,
|
||||
Weight: server.Weight,
|
||||
Protocols: []string{"http", "https"},
|
||||
Rules: server.Rules,
|
||||
}
|
||||
|
||||
if len(server.Protocols) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user