소스 검색

auto update script executed

Toby Chui 1 년 전
부모
커밋
990d248239
2개의 변경된 파일22개의 추가작업 그리고 134개의 파일을 삭제
  1. 7 0
      mod/geodb/geoloader.go
  2. 15 134
      web/img/icon.ai

+ 7 - 0
mod/geodb/geoloader.go

@@ -5,9 +5,16 @@ import (
 	"encoding/csv"
 	"io"
 	"net"
+	"strings"
 )
 
 func (s *Store) search(ip string) string {
+	if strings.Contains(ip, ",") {
+		//This is a CF proxied request. We only need the front part
+		//Example 219.71.102.145, 172.71.139.178
+		ip = strings.Split(ip, ",")[0]
+		ip = strings.TrimSpace(ip)
+	}
 	//See if there are cached country code for this ip
 	ccc, ok := s.geoipCache.Load(ip)
 	if ok {

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 15 - 134
web/img/icon.ai


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.