浏览代码

mod: icon

Ben 1 年之前
父节点
当前提交
e66bc84254
共有 7 个文件被更改,包括 25 次插入13 次删除
  1. 23 13
      internal/server/server.go
  2. 2 0
      scripts/ubuntu22.sh
  3. 二进制
      static/AE.png
  4. 二进制
      static/BH.png
  5. 二进制
      static/FR.png
  6. 二进制
      static/IN.png
  7. 二进制
      static/NL.png

+ 23 - 13
internal/server/server.go

@@ -214,21 +214,31 @@ func convert2DtoNode(node *model.Node, seq int) *dto.Node {
 		"SA": "http://v.starttransfernow.com/static/SA.png",
 		"SG": "http://v.starttransfernow.com/static/SG.png",
 		"VN": "http://v.starttransfernow.com/static/VN.png",
+		"AE": "http://v.starttransfernow.com/static/AE.png",
+		"BH": "http://v.starttransfernow.com/static/BH.png",
+		"FR": "http://v.starttransfernow.com/static/FR.png",
+		"IN": "http://v.starttransfernow.com/static/IN.png",
+		"NL": "http://v.starttransfernow.com/static/NL.png",
 	}
 	countryLabels := map[string]string{
-		"BR": "Brazil",         // aws
-		"DE": "Germany",        // aws
-		"HK": "Hong Kong",      // aws
-		"JP": "Japan",          // aws
-		"US": "United States",  // digitalocean
-		"UK": "United Kingdom", // aws
-		"GB": "United Kingdom", // aws
-		"AU": "Australia",      // aws
-		"CA": "Canada",         // digitalocean
-		"KR": "South Korea",    // aws
-		"SA": "Saudi Arabia",   // 无
-		"SG": "Singapore",      //  digitalocean
-		"VN": "Vietnam",        // 无
+		"BR": "Brazil",               // aws
+		"DE": "Germany",              // aws
+		"HK": "Hong Kong",            // aws
+		"JP": "Japan",                // aws
+		"US": "United States",        // digitalocean
+		"UK": "United Kingdom",       // aws
+		"GB": "United Kingdom",       // aws
+		"AU": "Australia",            // aws
+		"CA": "Canada",               // digitalocean
+		"KR": "South Korea",          // aws
+		"SA": "Saudi Arabia",         // 无
+		"SG": "Singapore",            //  digitalocean
+		"VN": "Vietnam",              // 无
+		"AE": "United Arab Emirates", // aws
+		"BH": "Bahrain",              // aws
+		"FR": "France",               // aws
+		"IN": "India",                //  digitalocean
+		"NL": "Netherlands",          //  digitalocean
 	}
 
 	countryLabel := fmt.Sprintf("%s", countryLabels[node.CountryCode])

+ 2 - 0
scripts/droplets.sh → scripts/ubuntu22.sh

@@ -1,4 +1,6 @@
 # fixed
+sed -i 's/#$nrconf{restart} = '\"'\"'i'\"'\"';/$nrconf{restart} = '\"'\"'a'\"'\"';/g' /etc/needrestart/needrestart.conf
+
 apt update -y
 ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa <<<y >/dev/null 2>&1
 token=b0929fa414cefbb6266b8760fd0c8107421c33c0

二进制
static/AE.png


二进制
static/BH.png


二进制
static/FR.png


二进制
static/IN.png


二进制
static/NL.png