#!/bin/bash
file="/etc/XrayR/config.yml"
link="http://127.0.0.1:667"
#输入信息
read -p "请输入面板地址：" apihost
read -p "请输入前端面板KEY："  apikey
read -p "请输入节点ID：" nodeid


#写入信息
sed -i "s|$link|$apihost|" $file
sed -i "s|123|$apikey|" $file
sed -i "s|41|$nodeid|" $file

echo "配置完成"
echo "正在启动XrayR" && XrayR start && XrayR status
