فهرست منبع

seed hostname

narodnik 4 سال پیش
والد
کامیت
971202d3ea
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      bin/ircd/run_node.sh

+ 5 - 1
bin/ircd/run_node.sh

@@ -1,5 +1,9 @@
 #!/bin/bash
+
+# Change this value to the hostname of the seed server
+SEED_HOSTNAME=XXX
+
 LOCAL_IP=$(ip route get 8.8.8.8 | head -1 | awk '{print $7}')
-SEED_IP=$(getent hosts XXX.local | awk '{print $1}' | head -n 1)
+SEED_IP=$(getent hosts $SEED_HOSTNAME.local | awk '{print $1}' | head -n 1)
 cargo run -- --accept 0.0.0.0:11004 --slots 5 --external $LOCAL_IP:11004 --seeds $SEED_IP:9999 --irc 127.0.0.1:6667