@@ -249,14 +249,14 @@ show() {
249249 Endip_v46=" engage.cloudflareclient.com:2408"
250250 fi
251251 echo -e " ${purple} ************************************${rest} "
252- echo -e " ${purple} * 👇 ${green} Here is WireGuard Config👇 ${purple} *${rest} "
252+ echo -e " ${purple} * 👇 ${green} Here is WireGuard Config👇 ${purple} *${rest} "
253253 echo -e " ${purple} ************************************${rest} "
254- echo -e " ${cyan} 👇 Copy for :${yellow} [Nekobox] 👇 ${rest} "
254+ echo -e " ${cyan} 👇 Copy for :${yellow} [Nekobox] 👇 ${rest} "
255255 echo " "
256256 echo -e " ${green} $( cat wgcf-profile.conf) ${rest} "
257257 echo " "
258258 echo -e " ${purple} ************************************${rest} "
259- echo -e " ${cyan} 👇 Copy for :${yellow} [V2rayNG] 👇 ${rest} "
259+ echo -e " ${cyan} 👇 Copy for :${yellow} [V2rayNG] 👇 ${rest} "
260260 echo " "
261261 echo -e " ${green} $( v2ray) ${rest} "
262262 echo " "
@@ -307,6 +307,34 @@ endipresult() {
307307 exit
308308}
309309
310+ # Run wire-g and get Wireguard Config
311+ wire-g () {
312+ if [ ! -f " $PREFIX /bin/wire-g" ]; then
313+ if [ -f " $HOME /.termux" ]; then
314+ if ! command -v wg & > /dev/null || ! command -v jq & > /dev/null || ! command -v xz & > /dev/null || ! command -v bzip2 & > /dev/null; then
315+ pkg update -y && pkg upgrade -y
316+ pkg install wireguard-tools jq xz-utils bzip2 -y
317+ fi
318+ else
319+ if ! command -v wg & > /dev/null || ! command -v jq & > /dev/null || ! command -v xz & > /dev/null || ! command -v bzip2 & > /dev/null; then
320+ apt update -y
321+ apt install wireguard-tools jq xz-utils bzip2 -y
322+ fi
323+ fi
324+ curl -o $PREFIX /bin/wire-g https://raw.githubusercontent.com/Ptechgithub/warp/main/wire-g.sh
325+ chmod +x $PREFIX /bin/wire-g
326+ echo " "
327+ echo -e " ${purple} *********************${rest} "
328+ echo -e " ${yellow} Run --> ${green} wire-g${rest} "
329+ echo -e " ${purple} *********************${rest} "
330+ else
331+ echo " "
332+ echo -e " ${purple} *********************${rest} "
333+ echo -e " ${yellow} Run --> ${green} wire-g${rest} "
334+ echo -e " ${purple} *********************${rest} "
335+ fi
336+ }
337+
310338clear
311339echo -e " ${cyan} By --> Peyman * Github.com/Ptechgithub * ${rest} "
312340echo " "
@@ -317,7 +345,9 @@ echo -e "${purple}[1] ${blue}Preferred${green} IPV4${purple} * ${rest}"
317345echo -e " ${purple} *${rest} "
318346echo -e " ${purple} [2] ${blue} Preferred${green} IPV6${purple} * ${rest} "
319347echo -e " ${purple} *${rest} "
320- echo -e " ${purple} [3] ${green} Get free Config${purple} *${rest} "
348+ echo -e " ${purple} [3] ${blue} Get ${green} free Config${purple} *${rest} "
349+ echo -e " ${purple} *${rest} "
350+ echo -e " ${purple} [4] ${blue} Install ${green} wire-g${purple} *${rest} "
321351echo -e " ${purple} *${rest} "
322352echo -e " ${purple} [${red} 0${purple} ] Exit *${rest} "
323353echo -e " ${purple} *********************${rest} "
@@ -341,9 +371,12 @@ case "$choice" in
341371 3)
342372 generate
343373 ;;
374+ 4)
375+ wire-g
376+ ;;
344377 0)
345378 echo -e " ${purple} *********************${rest} "
346- echo -e " ${cyan} By 🖐 ${rest} "
379+ echo -e " ${cyan} By 🖠${rest} "
347380 exit
348381 ;;
349382 * )
0 commit comments