mirror of
https://github.com/v2rayA/v2rayA.git
synced 2024-11-25 16:34:19 +08:00
rename project
This commit is contained in:
parent
ef5236e8ab
commit
b2de124709
@ -1,4 +1,4 @@
|
||||
**/V2RayA_*
|
||||
**/v2rayA_*
|
||||
**/.idea
|
||||
**/.vscode
|
||||
**/*.test.go
|
||||
|
2
.github/ISSUE_TEMPLATE/bug_en.md
vendored
2
.github/ISSUE_TEMPLATE/bug_en.md
vendored
@ -7,7 +7,7 @@ labels: bug
|
||||
|
||||
### Version, approach of installation, operating system
|
||||
|
||||
1. What version of V2RayA are you using?
|
||||
1. What version of v2rayA are you using?
|
||||
|
||||
2. What approach of installation do you install V2rayA?
|
||||
|
||||
|
10
.github/ISSUE_TEMPLATE/bug_zh.md
vendored
10
.github/ISSUE_TEMPLATE/bug_zh.md
vendored
@ -1,15 +1,15 @@
|
||||
---
|
||||
name: V2RayA程序问题
|
||||
about: "提交一个 V2RayA 的程序问题报告。"
|
||||
name: v2rayA程序问题
|
||||
about: "提交一个 v2rayA 的程序问题报告。"
|
||||
labels: bug
|
||||
|
||||
---
|
||||
|
||||
### 版本、安装方式、系统
|
||||
|
||||
1. 你在使用什么版本的V2RayA
|
||||
1. 你在使用什么版本的v2rayA
|
||||
|
||||
2. 你通过什么方式安装V2RayA
|
||||
2. 你通过什么方式安装v2rayA
|
||||
|
||||
3. 你所使用的操作系统、CPU架构
|
||||
|
||||
@ -22,7 +22,7 @@ labels: bug
|
||||
<!-- 在下方描述如何复现问题 -->
|
||||
|
||||
|
||||
### V2RayA运行日志:
|
||||
### v2rayA运行日志:
|
||||
|
||||
```bash
|
||||
# daemon mode
|
||||
|
2
.github/ISSUE_TEMPLATE/feature_zh.md
vendored
2
.github/ISSUE_TEMPLATE/feature_zh.md
vendored
@ -1,6 +1,6 @@
|
||||
---
|
||||
name: 提议一个新功能
|
||||
about: "为 V2RayA 提议一个新的功能特性"
|
||||
about: "为 v2rayA 提议一个新的功能特性"
|
||||
labels: enhancement
|
||||
|
||||
---
|
||||
|
2
.github/ISSUE_TEMPLATE/help_en.md
vendored
2
.github/ISSUE_TEMPLATE/help_en.md
vendored
@ -7,7 +7,7 @@ labels: help wanted
|
||||
|
||||
### Version, approach of installation, operating system
|
||||
|
||||
1. What version of V2RayA are you using?
|
||||
1. What version of v2rayA are you using?
|
||||
|
||||
2. What approach of installation do you install V2rayA?
|
||||
|
||||
|
8
.github/ISSUE_TEMPLATE/help_zh.md
vendored
8
.github/ISSUE_TEMPLATE/help_zh.md
vendored
@ -1,15 +1,15 @@
|
||||
---
|
||||
name: 需要帮助
|
||||
about: "有些问题出现了,但我不能确定它是不是 V2RayA 的程序问题"
|
||||
about: "有些问题出现了,但我不能确定它是不是 v2rayA 的程序问题"
|
||||
labels: help wanted
|
||||
|
||||
---
|
||||
|
||||
### 版本、安装方式、系统
|
||||
|
||||
1. 你在使用什么版本的V2RayA
|
||||
1. 你在使用什么版本的v2rayA
|
||||
|
||||
2. 你通过什么方式安装V2RayA
|
||||
2. 你通过什么方式安装v2rayA
|
||||
|
||||
3. 你所使用的操作系统、CPU架构
|
||||
|
||||
@ -20,7 +20,7 @@ labels: help wanted
|
||||
|
||||
|
||||
|
||||
### V2RayA运行日志(Optional):
|
||||
### v2rayA运行日志(Optional):
|
||||
|
||||
```bash
|
||||
# daemon mode
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -17,9 +17,11 @@ node_modules
|
||||
*.out
|
||||
|
||||
# Output
|
||||
/v2rayA_*
|
||||
/V2RayA_*
|
||||
/v2raya_*
|
||||
/installer_*
|
||||
/v2rayA
|
||||
/V2RayA
|
||||
/v2raya
|
||||
/web
|
||||
|
@ -31,7 +31,7 @@ install:
|
||||
- go get github.com/mitchellh/gox
|
||||
- gem install fpm
|
||||
script:
|
||||
- cd service && gox -osarch="linux/386 linux/amd64 linux/arm linux/arm64" -ldflags="-X V2RayA/global.Version=${VERSION:1}" -output="../v2raya_{{.OS}}_{{.Arch}}_$VERSION"
|
||||
- cd service && gox -osarch="linux/386 linux/amd64 linux/arm linux/arm64" -ldflags="-X v2rayA/global.Version=${VERSION:1}" -output="../v2raya_{{.OS}}_{{.Arch}}_$VERSION"
|
||||
- cd ../
|
||||
- files="install/universal/v2raya.service=/etc/systemd/system/v2raya.service install/universal/v2raya.png=/usr/share/icons/v2raya.png install/universal/v2raya.desktop=/usr/share/applications/v2raya.desktop"
|
||||
- params="--verbose -f -n $NAME -v ${VERSION:1} --url https://github.com/mzz2017/v2raya --maintainer mzz2017 --after-install install/universal/after_install.sh --after-upgrade install/universal/after_upgrade.sh --before-remove install/universal/before_remove.sh --after-remove install/universal/after_remove.sh"
|
||||
|
@ -10,16 +10,16 @@ WORKDIR /build/service
|
||||
ENV GO111MODULE=on
|
||||
ENV GOPROXY=https://goproxy.io
|
||||
COPY --from=version /build/version ./
|
||||
RUN export VERSION=$(cat ./version) && go build -ldflags="-X V2RayA/global.Version=${VERSION:1}" -o V2RayA .
|
||||
RUN export VERSION=$(cat ./version) && go build -ldflags="-X v2rayA/global.Version=${VERSION:1}" -o v2rayA .
|
||||
|
||||
FROM v2fly/v2fly-core AS v2ray
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk --no-cache add iptables
|
||||
WORKDIR /v2raya
|
||||
COPY --from=builder /build/service/V2RayA .
|
||||
COPY --from=builder /build/service/v2rayA .
|
||||
COPY --from=v2ray /usr/bin/v2ray/* /etc/v2ray/
|
||||
ENV PATH=$PATH:/etc/v2ray
|
||||
ENV GIN_MODE=release
|
||||
EXPOSE 2017
|
||||
ENTRYPOINT ["./V2RayA","--mode=universal"]
|
||||
ENTRYPOINT ["./v2rayA","--mode=universal"]
|
||||
|
@ -9,7 +9,7 @@ WORKDIR /service
|
||||
COPY --from=v2ray /usr/bin/v2ray/* /etc/v2ray/
|
||||
ENV PATH=$PATH:/etc/v2ray
|
||||
ENV CONFIG=../config.json
|
||||
ENV GIN_BIN=../V2RayA
|
||||
ENV GIN_BIN=../v2rayA
|
||||
ENV GIN_GUILD_ARGS="-o ${GIN_BIN}"
|
||||
ENV V2RAYA_MODE=universal
|
||||
EXPOSE 2017
|
||||
|
16
README.md
16
README.md
@ -1,27 +1,27 @@
|
||||
# V2RayA [![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/mzz2017/v2raya)](https://hub.docker.com/r/mzz2017/v2raya) [![Travis (.org)](https://img.shields.io/travis/mzz2017/V2RayA?label=travis-ci%20build)](https://travis-ci.org/mzz2017/V2RayA) [![Netlify](https://img.shields.io/netlify/f93dbfa7-d14b-4968-a7a4-5e503d8bf5e5?label=netlify%20build)](https://app.netlify.com/sites/xenodochial-jepsen-122e9b/deploys)
|
||||
# v2rayA [![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/mzz2017/v2raya)](https://hub.docker.com/r/mzz2017/v2raya) [![Travis (.org)](https://img.shields.io/travis/mzz2017/v2rayA?label=travis-ci%20build)](https://travis-ci.org/mzz2017/v2rayA) [![Netlify](https://img.shields.io/netlify/f93dbfa7-d14b-4968-a7a4-5e503d8bf5e5?label=netlify%20build)](https://app.netlify.com/sites/xenodochial-jepsen-122e9b/deploys)
|
||||
|
||||
[**English**](https://github.com/mzz2017/V2RayA/blob/master/README.md) [**简体中文**](https://github.com/mzz2017/V2RayA/blob/master/README_zh.md)
|
||||
[**English**](https://github.com/mzz2017/v2rayA/blob/master/README.md) [**简体中文**](https://github.com/mzz2017/v2rayA/blob/master/README_zh.md)
|
||||
|
||||
V2RayA is a V2Ray Linux client supporting global transparent proxy, compatible with SS, SSR, [Trojan](https://github.com/trojan-gfw/trojan), [PingTunnel](https://github.com/esrrhs/pingtunnel) protocols. [[SS/SSR protocol list]](https://github.com/mzz2017/shadowsocksR/blob/master/README.md#ss-encrypting-algorithm)
|
||||
v2rayA is a V2Ray Linux client supporting global transparent proxy, compatible with SS, SSR, [Trojan](https://github.com/trojan-gfw/trojan), [PingTunnel](https://github.com/esrrhs/pingtunnel) protocols. [[SS/SSR protocol list]](https://github.com/mzz2017/shadowsocksR/blob/master/README.md#ss-encrypting-algorithm)
|
||||
|
||||
directlyWe are committed to providing the simplest operation and meet most needs.
|
||||
We are committed to providing the simplest operation and meet most needs.
|
||||
|
||||
Thanks to the advantages of Web GUI, you can not only use it on your local computer, but also easily deploy it on a router or NAS.
|
||||
|
||||
Project:https://github.com/mzz2017/V2RayA
|
||||
Project:https://github.com/mzz2017/v2rayA
|
||||
|
||||
Frontend demo: https://v2raya.mzz.pub
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
V2RayA mainly provides the following methods of installation:
|
||||
v2rayA mainly provides the following methods of installation:
|
||||
|
||||
1. Install from apt-source or AUR
|
||||
2. Docker
|
||||
3. Binary file and installation package
|
||||
|
||||
See [**V2RayA - Wiki**](https://github.com/mzz2017/V2RayA/wiki/Usage)
|
||||
See [**v2rayA - Wiki**](https://github.com/mzz2017/v2rayA/wiki/Usage)
|
||||
|
||||
|
||||
## Screenshot
|
||||
@ -31,7 +31,7 @@ See [**V2RayA - Wiki**](https://github.com/mzz2017/V2RayA/wiki/Usage)
|
||||
## Statement
|
||||
|
||||
1. The program does not save any user data in the cloud, all user data is stored in local. If the v2raya service is running in docker, the configuration will disappear when the related docker volume is removed. Please make a backup if necessary.
|
||||
2. The provided [GUI demo](https://v2raya.mzz.pub) is automatically deployed by [Netlify](https://app.netlify.com/). If you are worried about security, you can [deploy it yourself](https://github.com/mzz2017/V2RayA/wiki/Deploy-GUI).
|
||||
2. The provided [GUI demo](https://v2raya.mzz.pub) is automatically deployed by [Netlify](https://app.netlify.com/). If you are worried about security, you can [deploy it yourself](https://github.com/mzz2017/v2rayA/wiki/Deploy-GUI).
|
||||
3. **Do not use this project for illegal purposes.**
|
||||
|
||||
## Credits
|
||||
|
16
README_zh.md
16
README_zh.md
@ -1,27 +1,27 @@
|
||||
# V2RayA [![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/mzz2017/v2raya)](https://hub.docker.com/r/mzz2017/v2raya) [![Travis (.org)](https://img.shields.io/travis/mzz2017/V2RayA?label=travis-ci%20build)](https://travis-ci.org/mzz2017/V2RayA) [![Netlify](https://img.shields.io/netlify/f93dbfa7-d14b-4968-a7a4-5e503d8bf5e5?label=netlify%20build)](https://app.netlify.com/sites/xenodochial-jepsen-122e9b/deploys)
|
||||
# v2rayA [![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/mzz2017/v2raya)](https://hub.docker.com/r/mzz2017/v2raya) [![Travis (.org)](https://img.shields.io/travis/mzz2017/v2rayA?label=travis-ci%20build)](https://travis-ci.org/mzz2017/v2rayA) [![Netlify](https://img.shields.io/netlify/f93dbfa7-d14b-4968-a7a4-5e503d8bf5e5?label=netlify%20build)](https://app.netlify.com/sites/xenodochial-jepsen-122e9b/deploys)
|
||||
|
||||
[**English**](https://github.com/mzz2017/V2RayA/blob/master/README.md) [**简体中文**](https://github.com/mzz2017/V2RayA/blob/master/README_zh.md)
|
||||
[**English**](https://github.com/mzz2017/v2rayA/blob/master/README.md) [**简体中文**](https://github.com/mzz2017/v2rayA/blob/master/README_zh.md)
|
||||
|
||||
V2RayA 是一个支持全局透明代理的 V2Ray Linux 客户端,同时兼容SS、SSR、[Trojan](https://github.com/trojan-gfw/trojan)、[PingTunnel](https://github.com/esrrhs/pingtunnel)协议。 [[SS/SSR支持清单]](https://github.com/mzz2017/shadowsocksR/blob/master/README.md#ss-encrypting-algorithm)
|
||||
v2rayA 是一个支持全局透明代理的 V2Ray Linux 客户端,同时兼容SS、SSR、[Trojan](https://github.com/trojan-gfw/trojan)、[PingTunnel](https://github.com/esrrhs/pingtunnel)协议。 [[SS/SSR支持清单]](https://github.com/mzz2017/shadowsocksR/blob/master/README.md#ss-encrypting-algorithm)
|
||||
|
||||
V2RayA 致力于提供最简单的操作,满足绝大部分需求。
|
||||
v2rayA 致力于提供最简单的操作,满足绝大部分需求。
|
||||
|
||||
得益于Web客户端的优势,你不仅可以将其用于本地计算机,还可以轻松地将它部署在路由器或NAS上。
|
||||
|
||||
项目地址:https://github.com/mzz2017/V2RayA
|
||||
项目地址:https://github.com/mzz2017/v2rayA
|
||||
|
||||
前端 demo: https://v2raya.mzz.pub
|
||||
|
||||
|
||||
## 使用方法
|
||||
|
||||
V2RayA主要提供了下述使用方法:
|
||||
v2rayA主要提供了下述使用方法:
|
||||
|
||||
1. 软件源安装
|
||||
2. docker
|
||||
3. 二进制文件、安装包
|
||||
|
||||
详见 [**V2RayA - Wiki**](https://github.com/mzz2017/V2RayA/wiki/使用方法)
|
||||
详见 [**v2rayA - Wiki**](https://github.com/mzz2017/v2rayA/wiki/使用方法)
|
||||
|
||||
|
||||
## 界面截图
|
||||
@ -33,7 +33,7 @@ V2RayA主要提供了下述使用方法:
|
||||
|
||||
1. 程序不会将任何用户数据保存在云端,所有用户数据存放在用户本地配置文件中。若服务端运行于 docker,则当相应 docker volume 被清除时配置也将随之消失,请做好备份。
|
||||
|
||||
2. 提供的[GUI demo](https://v2raya.mzz.pub)是由[Netlify](https://app.netlify.com/)在本 Github 项目自动部署完成的,如果担心安全性可以[自行部署](https://github.com/mzz2017/V2RayA/wiki/%E9%83%A8%E7%BD%B2GUI)。
|
||||
2. 提供的[GUI demo](https://v2raya.mzz.pub)是由[Netlify](https://app.netlify.com/)在本 Github 项目自动部署完成的,如果担心安全性可以[自行部署](https://github.com/mzz2017/v2rayA/wiki/%E9%83%A8%E7%BD%B2GUI)。
|
||||
|
||||
3. **不要将本项目用于不合法用途。**
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# V2RayA-GUI
|
||||
# v2rayA-GUI
|
||||
|
||||
## Project setup
|
||||
```
|
||||
|
@ -5,11 +5,11 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<title>V2RayA</title>
|
||||
<title>v2rayA</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>We're sorry but V2RayA-GUI doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
<strong>We're sorry but v2rayA-GUI doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
<!-- built files will be auto injected -->
|
||||
|
@ -3,7 +3,7 @@
|
||||
<b-navbar ref="navs" fixed-top shadow type="is-light">
|
||||
<template slot="brand">
|
||||
<b-navbar-item href="/">
|
||||
<img src="./assets/logo2.png" alt="V2RayA" class="logo no-select" />
|
||||
<img src="./assets/logo2.png" alt="v2rayA" class="logo no-select" />
|
||||
</b-navbar-item>
|
||||
</template>
|
||||
<template slot="start">
|
||||
@ -143,7 +143,7 @@ export default {
|
||||
console.log("app created");
|
||||
let ba = localStorage.getItem("backendAddress");
|
||||
let u = parseURL(ba);
|
||||
document.title = `V2RayA - ${u.host}:${u.port}`;
|
||||
document.title = `v2rayA - ${u.host}:${u.port}`;
|
||||
this.$axios({
|
||||
url: apiRoot + "/version"
|
||||
}).then(res => {
|
||||
@ -219,16 +219,16 @@ export default {
|
||||
content: `
|
||||
<div class="modal-card" style="margin:auto">
|
||||
<header class="modal-card-head">
|
||||
<p class="modal-card-title">mzz2017 / V2RayA</p>
|
||||
<p class="modal-card-title">mzz2017 / v2rayA</p>
|
||||
</header>
|
||||
<section class="modal-card-body lazy">
|
||||
${this.$t(`about`)}
|
||||
</section>
|
||||
<footer class="modal-card-foot">
|
||||
<a class="is-link" href="https://github.com/mzz2017/V2RayA" target="_blank">
|
||||
<img class="leave-right" src="https://img.shields.io/github/stars/mzz2017/V2RayA.svg?style=social" alt="stars">
|
||||
<img class="leave-right" src="https://img.shields.io/github/forks/mzz2017/V2RayA.svg?style=social" alt="forks">
|
||||
<img class="leave-right" src="https://img.shields.io/github/watchers/mzz2017/V2RayA.svg?style=social" alt="watchers">
|
||||
<a class="is-link" href="https://github.com/mzz2017/v2rayA" target="_blank">
|
||||
<img class="leave-right" src="https://img.shields.io/github/stars/mzz2017/v2rayA.svg?style=social" alt="stars">
|
||||
<img class="leave-right" src="https://img.shields.io/github/forks/mzz2017/v2rayA.svg?style=social" alt="forks">
|
||||
<img class="leave-right" src="https://img.shields.io/github/watchers/mzz2017/v2rayA.svg?style=social" alt="watchers">
|
||||
</a>
|
||||
</footer>
|
||||
</div>
|
||||
|
@ -63,7 +63,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
handleClickManual() {
|
||||
window.open("https://github.com/mzz2017/V2RayA/wiki/RoutingA", "_blank");
|
||||
window.open("https://github.com/mzz2017/v2rayA/wiki/RoutingA", "_blank");
|
||||
},
|
||||
handleClickSubmit() {
|
||||
this.$axios({
|
||||
|
@ -2,12 +2,12 @@
|
||||
<div class="modal-card" style="max-width: 450px;margin:auto">
|
||||
<header class="modal-card-head">
|
||||
<p class="modal-card-title">
|
||||
{{ first ? $t("register.title") : `${$t("login.title")} - V2RayA` }}
|
||||
{{ first ? $t("register.title") : `${$t("login.title")} - v2rayA` }}
|
||||
</p>
|
||||
</header>
|
||||
<section class="modal-card-body">
|
||||
<p style="text-align: center">
|
||||
<img src="../assets/logo2.png" alt="V2RayA" />
|
||||
<img src="../assets/logo2.png" alt="v2rayA" />
|
||||
</p>
|
||||
<b-field :label="$t('login.username')" type="is-success">
|
||||
<b-input v-model="username" @keyup.enter.native="handleEnter"></b-input>
|
||||
|
@ -17,8 +17,8 @@ export default {
|
||||
},
|
||||
welcome: {
|
||||
title: "Welcome",
|
||||
docker: "V2RayA service is running in Docker. Version: {version}",
|
||||
default: "V2RayA service is running. Version: {version}",
|
||||
docker: "v2rayA service is running in Docker. Version: {version}",
|
||||
default: "v2rayA service is running. Version: {version}",
|
||||
newVersion: "Detected new version: {version}",
|
||||
messages: [
|
||||
"There is no server.",
|
||||
@ -71,7 +71,7 @@ export default {
|
||||
messages: [
|
||||
"Remember your admin account which is importantly used to login.",
|
||||
"Account information is stored in local. We never send information to any server.",
|
||||
"Once password was forgot, you could delete the config file and restart V2RayA service to reset."
|
||||
"Once password was forgot, you could delete the config file and restart v2rayA service to reset."
|
||||
]
|
||||
},
|
||||
login: {
|
||||
@ -154,7 +154,7 @@ export default {
|
||||
domainFile: "Domain File",
|
||||
typeRule: "Type of Rule",
|
||||
messages: {
|
||||
0: "V2RayA will recognize all SiteDat file in <b>{V2RayLocationAsset}</b>",
|
||||
0: "v2rayA will recognize all SiteDat file in <b>{V2RayLocationAsset}</b>",
|
||||
1: 'To make a SiteDat file by yourself: <a href="https://github.com/ToutyRater/V2Ray-SiteDAT">ToutyRater/V2Ray-SiteDAT</a>',
|
||||
2: "Multi-select is supported.",
|
||||
noSiteDatFileFound: "No siteDat file found in {V2RayLocationAsset}",
|
||||
@ -179,7 +179,7 @@ export default {
|
||||
tcpPortWhitelist: "TCP Port Whitelist",
|
||||
udpPortWhitelist: "UDP Port Whitelist",
|
||||
messages: [
|
||||
"If V2RayA is setup on a server providing service to clients, pay attention:",
|
||||
"If v2rayA is setup on a server providing service to clients, pay attention:",
|
||||
"Transparent proxy will force all TCP and UDP traffic to pass through proxy server, where source IP address will be replaced with proxy's. Moreover, if some clients send requests to the IP address of your server that provides service, they will received responses from your proxy's IP address weirdly, which is illegal.",
|
||||
"To resolve it, we need to add those service ports to whitelist so that not pass through proxy.For examples, ssh(22)、v2raya({v2rayaPort}).",
|
||||
"Obviously, if the server does not provide any service, you can skip configuring.",
|
||||
@ -219,12 +219,12 @@ export default {
|
||||
},
|
||||
version: {
|
||||
higherVersionNeeded:
|
||||
"This operation need higher version of V2RayA than {version}",
|
||||
"This operation need higher version of v2rayA than {version}",
|
||||
v2rayInvalid: "v2ray-core may not be installed correctly"
|
||||
},
|
||||
about: `<p>V2RayA is a web GUI client of V2Ray. Frontend is built with Vue.js and backend is built with golang.</p>
|
||||
about: `<p>v2rayA is a web GUI client of V2Ray. Frontend is built with Vue.js and backend is built with golang.</p>
|
||||
<p class="about-small">Default ports:</p>
|
||||
<p class="about-small">2017: V2RayA service port</p>
|
||||
<p class="about-small">2017: v2rayA service port</p>
|
||||
<p class="about-small">20170: SOCKS protocol</p>
|
||||
<p class="about-small">20171: HTTP protocol</p>
|
||||
<p class="about-small">20172: HTTP protocol with PAC</p>
|
||||
@ -232,19 +232,19 @@ export default {
|
||||
<p class="about-small">12345: tproxy, needed by transparent proxy </p>
|
||||
<p class="about-small">12346: port of plugins such as trojan, ssr and pingtunnel</p>
|
||||
<p>All data is stored in local. If service is running in docker, configure will disappear with related docker volume's removing. Backup data if necessary.
|
||||
<p>Problems found during use can be reported at <a href="https://github.com/mzz2017/V2RayA/issues">issues</a>.</p>`,
|
||||
<p>Problems found during use can be reported at <a href="https://github.com/mzz2017/v2rayA/issues">issues</a>.</p>`,
|
||||
axios: {
|
||||
messages: {
|
||||
optimizeBackend: "Adjust V2RayA service address?",
|
||||
optimizeBackend: "Adjust v2rayA service address?",
|
||||
noBackendFound:
|
||||
"Cannot find V2RayA at {url}. Make sure V2RayA is running at this address.",
|
||||
"Cannot find v2rayA at {url}. Make sure v2rayA is running at this address.",
|
||||
cannotCommunicate: [
|
||||
"Cannot communicate. If your service is running and ports open correctly, the reason may be that current browser does not allow https sites to access http resources, you can try using Chrome or switching to alternate http site.",
|
||||
"Cannot communicate. Firefox does not allow https sites to access http resources, you can try switching to alternate http site."
|
||||
]
|
||||
},
|
||||
urls: {
|
||||
usage: "https://github.com/mzz2017/V2RayA/wiki/Usage"
|
||||
usage: "https://github.com/mzz2017/v2rayA/wiki/Usage"
|
||||
}
|
||||
},
|
||||
routingA: {
|
||||
|
@ -17,8 +17,8 @@ export default {
|
||||
},
|
||||
welcome: {
|
||||
title: "初来乍到,请多关照",
|
||||
docker: "V2RayA服务端正在运行于Docker环境中,Version: {version}",
|
||||
default: "V2RayA服务端正在运行,Version: {version}",
|
||||
docker: "v2rayA服务端正在运行于Docker环境中,Version: {version}",
|
||||
default: "v2rayA服务端正在运行,Version: {version}",
|
||||
newVersion: "检测到新版本: {version}",
|
||||
messages: [
|
||||
"我们发现你还没有创建或导入任何节点、订阅。",
|
||||
@ -177,7 +177,7 @@ export default {
|
||||
tcpPortWhitelist: "TCP端口白名单",
|
||||
udpPortWhitelist: "UDP端口白名单",
|
||||
messages: [
|
||||
"如果你将V2RayA架设在对外提供服务的服务器上,那么你需要注意:",
|
||||
"如果你将v2rayA架设在对外提供服务的服务器上,那么你需要注意:",
|
||||
"全局透明代理会使得所有TCP、UDP流量走代理,通过走代理的流量其源IP地址会被替换为代理服务器的IP地址,那么如果客户请求你的服务器IP地址,他却将得到从你代理服务器IP发出的回答,该回答在客户看来无疑是不合法的,从而导致服务被拒绝。",
|
||||
"因此,需要将服务器提供的对外服务端口包含在白名单中,使其不走代理。如ssh(22)、v2raya({v2rayaPort})。",
|
||||
"如不对外提供服务或仅对局域网内主机提供服务,则可不设置白名单。",
|
||||
@ -211,12 +211,12 @@ export default {
|
||||
message: "时延测试往往需要花费较长时间,请耐心等待"
|
||||
},
|
||||
version: {
|
||||
higherVersionNeeded: "该操作需要V2RayA的版本高于{version}",
|
||||
higherVersionNeeded: "该操作需要v2rayA的版本高于{version}",
|
||||
v2rayInvalid: "检测到v2ray-core可能未正确安装,请检查"
|
||||
},
|
||||
about: `<p>V2RayA是V2Ray的一个Web客户端,前端使用Vue.js构建,后端使用Golang构建。</p>
|
||||
about: `<p>v2rayA是V2Ray的一个Web客户端,前端使用Vue.js构建,后端使用Golang构建。</p>
|
||||
<p class="about-small">默认端口:</p>
|
||||
<p class="about-small">2017: V2RayA后端端口</p>
|
||||
<p class="about-small">2017: v2rayA后端端口</p>
|
||||
<p class="about-small">20170: SOCKS协议</p>
|
||||
<p class="about-small">20171: HTTP协议</p>
|
||||
<p class="about-small">20172: 带PAC的HTTP协议</p>
|
||||
@ -224,11 +224,11 @@ export default {
|
||||
<p class="about-small">12345: tproxy,透明代理所需 </p>
|
||||
<p class="about-small">12346: 插件协议端口,如trojan、ssr和pingtunnel</p>
|
||||
<p>应用不会将任何用户数据保存在云端,所有用户数据存放在用户本地配置文件中。若服务端运行于docker,则当相应 docker volume 被清除时配置也将随之消失,请做好备份。
|
||||
<p>在使用中如果发现任何问题,欢迎<a href="https://github.com/mzz2017/V2RayA/issues">提出issue</a>。</p>`,
|
||||
<p>在使用中如果发现任何问题,欢迎<a href="https://github.com/mzz2017/v2rayA/issues">提出issue</a>。</p>`,
|
||||
axios: {
|
||||
messages: {
|
||||
optimizeBackend: "您是否需要调整服务端地址?",
|
||||
noBackendFound: "未在 {url} 检测到V2RayA服务端,请确定V2RayA正常运行",
|
||||
noBackendFound: "未在 {url} 检测到v2rayA服务端,请确定v2rayA正常运行",
|
||||
cannotCommunicate: [
|
||||
"无法通信。如果您的服务端已正常运行,且端口正常开放,原因可能是当前浏览器不允许https站点访问http资源,您可以尝试切换为http备用站点。",
|
||||
"无法通信。火狐浏览器不允许https站点访问http资源,您可以换用Chrome浏览器或切换为http备用站点。"
|
||||
@ -236,7 +236,7 @@ export default {
|
||||
},
|
||||
urls: {
|
||||
usage:
|
||||
"https://github.com/mzz2017/V2RayA/wiki/%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95"
|
||||
"https://github.com/mzz2017/v2rayA/wiki/%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95"
|
||||
}
|
||||
},
|
||||
routingA: {
|
||||
|
@ -839,10 +839,10 @@ export default {
|
||||
</div>
|
||||
</section>
|
||||
<footer class="modal-card-foot" style="justify-content: center">
|
||||
<a class="is-link" href="https://github.com/mzz2017/V2RayA" target="_blank">
|
||||
<img class="leave-right" src="https://img.shields.io/github/stars/mzz2017/V2RayA.svg?style=social" alt="stars">
|
||||
<img class="leave-right" src="https://img.shields.io/github/forks/mzz2017/V2RayA.svg?style=social" alt="forks">
|
||||
<img class="leave-right" src="https://img.shields.io/github/watchers/mzz2017/V2RayA.svg?style=social" alt="watchers">
|
||||
<a class="is-link" href="https://github.com/mzz2017/v2rayA" target="_blank">
|
||||
<img class="leave-right" src="https://img.shields.io/github/stars/mzz2017/v2rayA.svg?style=social" alt="stars">
|
||||
<img class="leave-right" src="https://img.shields.io/github/forks/mzz2017/v2rayA.svg?style=social" alt="forks">
|
||||
<img class="leave-right" src="https://img.shields.io/github/watchers/mzz2017/v2rayA.svg?style=social" alt="watchers">
|
||||
</a>
|
||||
</footer>
|
||||
</div>
|
||||
@ -965,7 +965,7 @@ export default {
|
||||
actionText: this.$t("operations.helpManual"),
|
||||
onAction: () => {
|
||||
window.open(
|
||||
"https://github.com/mzz2017/V2RayA#%E4%BD%BF%E7%94%A8",
|
||||
"https://github.com/mzz2017/v2rayA#%E4%BD%BF%E7%94%A8",
|
||||
"_blank"
|
||||
);
|
||||
}
|
||||
|
@ -49,12 +49,12 @@ module.exports = {
|
||||
},
|
||||
|
||||
// publicPath:process.env.NODE_ENV === 'production'
|
||||
// ? '/V2RayA/'
|
||||
// ? '/v2rayA/'
|
||||
// : '/',
|
||||
outputDir: "../web",
|
||||
|
||||
pwa: {
|
||||
name: "V2RayA",
|
||||
name: "v2rayA",
|
||||
themeColor: "#FFDD57",
|
||||
msTileColor: "#fff",
|
||||
appleMobileWebAppCapable: "yes",
|
||||
|
@ -2,7 +2,7 @@ pkgbase = v2raya-bin
|
||||
pkgdesc = A web GUI client of Project V which supports V2Ray, SS, SSR, Trojan and PingTunnel protocols
|
||||
pkgver = {{pkgver}}
|
||||
pkgrel = 1
|
||||
url = https://github.com/mzz2017/V2RayA
|
||||
url = https://github.com/mzz2017/v2rayA
|
||||
install = .INSTALL
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
|
@ -7,7 +7,7 @@ pkgrel=1
|
||||
install=.INSTALL
|
||||
pkgdesc="A web GUI client of Project V which supports V2Ray, SS, SSR, Trojan and PingTunnel protocols"
|
||||
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
|
||||
url="https://github.com/mzz2017/V2RayA"
|
||||
url="https://github.com/mzz2017/v2rayA"
|
||||
license=('GPL')
|
||||
depends=('glibc' 'v2ray')
|
||||
provides=('v2raya')
|
||||
|
@ -2,7 +2,7 @@ pkgbase = v2raya
|
||||
pkgdesc = A web GUI client of Project V which supports V2Ray, SS, SSR, Trojan and PingTunnel protocols
|
||||
pkgver = {{pkgver}}
|
||||
pkgrel = 1
|
||||
url = https://github.com/mzz2017/V2RayA
|
||||
url = https://github.com/mzz2017/v2rayA
|
||||
install = .INSTALL
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
@ -13,7 +13,7 @@ pkgbase = v2raya
|
||||
makedepends = go>=2:1.11.3-1
|
||||
depends = glibc
|
||||
depends = v2ray
|
||||
source = v2raya-{{pkgver}}.tar.gz::https://github.com/mzz2017/V2RayA/archive/v{{pkgver}}.tar.gz
|
||||
source = v2raya-{{pkgver}}.tar.gz::https://github.com/mzz2017/v2rayA/archive/v{{pkgver}}.tar.gz
|
||||
sha512sums = SKIP
|
||||
|
||||
pkgname = v2raya
|
||||
|
@ -6,22 +6,22 @@ pkgrel=1
|
||||
install=.INSTALL
|
||||
pkgdesc="A web GUI client of Project V which supports V2Ray, SS, SSR, Trojan and PingTunnel protocols"
|
||||
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
|
||||
url="https://github.com/mzz2017/V2RayA"
|
||||
url="https://github.com/mzz2017/v2rayA"
|
||||
license=('GPL')
|
||||
depends=('glibc' 'v2ray')
|
||||
makedepends=('go>=2:1.12.3-1')
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/mzz2017/V2RayA/archive/v$pkgver.tar.gz")
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/mzz2017/v2rayA/archive/v$pkgver.tar.gz")
|
||||
sha512sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "V2RayA-$pkgver/service"
|
||||
cd "v2rayA-$pkgver/service"
|
||||
export GO111MODULE=on
|
||||
export GOPROXY=https://goproxy.io
|
||||
go build -ldflags="-X V2RayA/global.Version=$pkgver" -o v2raya
|
||||
go build -ldflags="-X v2rayA/global.Version=$pkgver" -o v2raya
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/V2RayA-$pkgver"
|
||||
cd "$srcdir/v2rayA-$pkgver"
|
||||
|
||||
install -Dm644 "install/universal/v2raya.service" "$pkgdir/usr/lib/systemd/system/v2raya.service"
|
||||
install -Dm755 "service/v2raya" -t "$pkgdir/usr/bin/"
|
||||
|
@ -2,7 +2,7 @@
|
||||
Version=1.0
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Name=V2RayA
|
||||
Name=v2rayA
|
||||
Keywords=Internet;VPN;Proxy;v2ray;v2raya
|
||||
Exec=python -m webbrowser "https://v2raya.mzz.pub"
|
||||
Icon=/usr/share/icons/v2raya.png
|
@ -1,6 +1,6 @@
|
||||
[Unit]
|
||||
Description=V2RayA Service
|
||||
Documentation=https://github.com/mzz2017/V2RayA/blob/master/README.md
|
||||
Description=v2rayA Service
|
||||
Documentation=https://github.com/mzz2017/v2rayA/blob/master/README.md
|
||||
After=network.target
|
||||
Wants=network.target
|
||||
|
||||
|
1
service/.gitignore
vendored
1
service/.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
/v2raya
|
||||
/main.test.go
|
||||
/v2rayA*
|
||||
/V2RayA*
|
||||
/v2raya*
|
||||
/.tr
|
||||
|
@ -1,10 +1,10 @@
|
||||
package httpClient
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/core/v2ray"
|
||||
"V2RayA/extra/proxyWithHttp"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/common"
|
||||
"v2rayA/core/v2ray"
|
||||
"v2rayA/extra/proxyWithHttp"
|
||||
"v2rayA/persistence/configure"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os/exec"
|
||||
@ -26,7 +26,7 @@ func GetHttpClientWithProxy(proxyURL string) (client *http.Client, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func GetHttpClientWithV2RayAProxy() (client *http.Client, err error) {
|
||||
func GetHttpClientWithv2rayAProxy() (client *http.Client, err error) {
|
||||
host := "127.0.0.1"
|
||||
//是否在docker环境
|
||||
if common.IsInDocker() {
|
||||
@ -41,7 +41,7 @@ func GetHttpClientWithV2RayAProxy() (client *http.Client, err error) {
|
||||
return GetHttpClientWithProxy("socks5://" + host + ":20170")
|
||||
}
|
||||
|
||||
func GetHttpClientWithV2RayAPac() (client *http.Client, err error) {
|
||||
func GetHttpClientWithv2rayAPac() (client *http.Client, err error) {
|
||||
host := "127.0.0.1"
|
||||
//是否在docker环境
|
||||
if common.IsInDocker() {
|
||||
@ -63,9 +63,9 @@ func GetHttpClientAutomatically() (c *http.Client, err error) {
|
||||
setting := configure.GetSettingNotNil()
|
||||
switch setting.ProxyModeWhenSubscribe {
|
||||
case configure.ProxyModePac:
|
||||
c, err = GetHttpClientWithV2RayAPac()
|
||||
c, err = GetHttpClientWithv2rayAPac()
|
||||
case configure.ProxyModeProxy:
|
||||
c, err = GetHttpClientWithV2RayAProxy()
|
||||
c, err = GetHttpClientWithv2rayAProxy()
|
||||
default:
|
||||
c = http.DefaultClient
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
package jwt
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"v2rayA/common"
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"github.com/dgrijalva/jwt-go"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package netTools
|
||||
|
||||
import (
|
||||
Trie "V2RayA/dataStructure/trie"
|
||||
Trie "v2rayA/dataStructure/trie"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
package ports
|
||||
|
||||
import (
|
||||
"V2RayA/common/netTools/netstat"
|
||||
"v2rayA/common/netTools/netstat"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
package ntp
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"v2rayA/common"
|
||||
"github.com/beevik/ntp"
|
||||
"time"
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/service"
|
||||
"v2rayA/common"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
"sync"
|
||||
"time"
|
||||
|
@ -1,9 +1,9 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/service"
|
||||
"v2rayA/common"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/core/v2ray/asset"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/service"
|
||||
"v2rayA/common"
|
||||
"v2rayA/core/v2ray/asset"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/common"
|
||||
"v2rayA/persistence/configure"
|
||||
"github.com/gin-gonic/gin"
|
||||
"strings"
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/core/v2ray/asset/gfwlist"
|
||||
"v2rayA/common"
|
||||
"v2rayA/core/v2ray/asset/gfwlist"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/service"
|
||||
"v2rayA/common"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/service"
|
||||
"v2rayA/common"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/json-iterator/go"
|
||||
"time"
|
||||
|
@ -1,10 +1,10 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/global"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/service"
|
||||
"v2rayA/common"
|
||||
"v2rayA/global"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/persistence/configure"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/service"
|
||||
"v2rayA/common"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/core/routingA"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/common"
|
||||
"v2rayA/core/routingA"
|
||||
"v2rayA/persistence/configure"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/core/v2ray/asset"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/service"
|
||||
"v2rayA/common"
|
||||
"v2rayA/core/v2ray/asset"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/service"
|
||||
"v2rayA/common"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/json-iterator/go"
|
||||
)
|
||||
|
@ -1,10 +1,10 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/core/touch"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/service"
|
||||
"v2rayA/common"
|
||||
"v2rayA/core/touch"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/core/touch"
|
||||
"V2RayA/core/v2ray"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/service"
|
||||
"v2rayA/common"
|
||||
"v2rayA/core/touch"
|
||||
"v2rayA/core/v2ray"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/core/v2ray"
|
||||
"V2RayA/global"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/common"
|
||||
"v2rayA/core/v2ray"
|
||||
"v2rayA/global"
|
||||
"v2rayA/persistence/configure"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/core/v2ray"
|
||||
"V2RayA/core/v2ray/asset/gfwlist"
|
||||
"V2RayA/global"
|
||||
"v2rayA/common"
|
||||
"v2rayA/core/v2ray"
|
||||
"v2rayA/core/v2ray/asset/gfwlist"
|
||||
"v2rayA/global"
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package dnsPoison
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/common/netTools"
|
||||
"v2rayA/common"
|
||||
"v2rayA/common/netTools"
|
||||
"fmt"
|
||||
"github.com/google/gopacket"
|
||||
"github.com/google/gopacket/layers"
|
||||
|
@ -1,9 +1,9 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"V2RayA/common/netTools"
|
||||
"V2RayA/core/dnsPoison"
|
||||
"V2RayA/core/v2ray/asset"
|
||||
"v2rayA/common/netTools"
|
||||
"v2rayA/core/dnsPoison"
|
||||
"v2rayA/core/v2ray/asset"
|
||||
"log"
|
||||
"sync"
|
||||
"time"
|
||||
|
@ -1,8 +1,8 @@
|
||||
package iptables
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/common/cmds"
|
||||
"v2rayA/common"
|
||||
"v2rayA/common/cmds"
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package iptables
|
||||
|
||||
import (
|
||||
"V2RayA/common/cmds"
|
||||
"v2rayA/common/cmds"
|
||||
)
|
||||
|
||||
type redirect struct{ iptablesSetter }
|
||||
|
@ -1,6 +1,6 @@
|
||||
package iptables
|
||||
|
||||
import "V2RayA/common/cmds"
|
||||
import "v2rayA/common/cmds"
|
||||
|
||||
type spoofingFilter struct{ iptablesSetter }
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package iptables
|
||||
|
||||
import "V2RayA/common/cmds"
|
||||
import "v2rayA/common/cmds"
|
||||
|
||||
type tproxy struct{ iptablesSetter }
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
package nodeData
|
||||
|
||||
import (
|
||||
"V2RayA/core/vmessInfo"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/core/vmessInfo"
|
||||
"v2rayA/persistence/configure"
|
||||
)
|
||||
|
||||
/*
|
||||
|
@ -1,8 +1,8 @@
|
||||
package routingA
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/global"
|
||||
"v2rayA/common"
|
||||
"v2rayA/global"
|
||||
"v2ray.com/core/common/errors"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package touch
|
||||
|
||||
import (
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/persistence/configure"
|
||||
"fmt"
|
||||
"net/url"
|
||||
"time"
|
||||
|
@ -1,9 +1,9 @@
|
||||
package asset
|
||||
|
||||
import (
|
||||
"V2RayA/common/files"
|
||||
"V2RayA/core/dnsPoison"
|
||||
"V2RayA/global"
|
||||
"v2rayA/common/files"
|
||||
"v2rayA/core/dnsPoison"
|
||||
"v2rayA/global"
|
||||
"github.com/gogo/protobuf/proto"
|
||||
"github.com/muhammadmuzzammil1998/jsonc"
|
||||
"io/ioutil"
|
||||
|
@ -1,12 +1,12 @@
|
||||
package gfwlist
|
||||
|
||||
import (
|
||||
"V2RayA/common/files"
|
||||
"V2RayA/common/httpClient"
|
||||
"V2RayA/core/v2ray"
|
||||
"V2RayA/core/v2ray/asset"
|
||||
"V2RayA/extra/gopeed"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/common/files"
|
||||
"v2rayA/common/httpClient"
|
||||
"v2rayA/core/v2ray"
|
||||
"v2rayA/core/v2ray/asset"
|
||||
"v2rayA/extra/gopeed"
|
||||
"v2rayA/persistence/configure"
|
||||
"fmt"
|
||||
"github.com/tidwall/gjson"
|
||||
"io/ioutil"
|
||||
|
@ -1,14 +1,14 @@
|
||||
package v2ray
|
||||
|
||||
import (
|
||||
"V2RayA/common/netTools/netstat"
|
||||
"V2RayA/common/ntp"
|
||||
"V2RayA/core/dnsPoison/entity"
|
||||
"V2RayA/core/v2ray/asset"
|
||||
"V2RayA/core/vmessInfo"
|
||||
"V2RayA/global"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/plugins"
|
||||
"v2rayA/common/netTools/netstat"
|
||||
"v2rayA/common/ntp"
|
||||
"v2rayA/core/dnsPoison/entity"
|
||||
"v2rayA/core/v2ray/asset"
|
||||
"v2rayA/core/vmessInfo"
|
||||
"v2rayA/global"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/plugins"
|
||||
"bytes"
|
||||
"fmt"
|
||||
netstat2 "github.com/cakturk/go-netstat/netstat"
|
||||
|
@ -1,11 +1,11 @@
|
||||
package v2ray
|
||||
|
||||
import (
|
||||
"V2RayA/common/netTools/netstat"
|
||||
"V2RayA/common/netTools/ports"
|
||||
"V2RayA/core/iptables"
|
||||
"V2RayA/global"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/common/netTools/netstat"
|
||||
"v2rayA/common/netTools/ports"
|
||||
"v2rayA/core/iptables"
|
||||
"v2rayA/global"
|
||||
"v2rayA/persistence/configure"
|
||||
"log"
|
||||
"strings"
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
package v2ray
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/core/v2ray/asset"
|
||||
"V2RayA/global"
|
||||
"v2rayA/common"
|
||||
"v2rayA/core/v2ray/asset"
|
||||
"v2rayA/global"
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
|
@ -1,12 +1,12 @@
|
||||
package v2ray
|
||||
|
||||
import (
|
||||
"V2RayA/core/dnsPoison/entity"
|
||||
"V2RayA/core/routingA"
|
||||
"V2RayA/core/v2ray/asset"
|
||||
"V2RayA/core/vmessInfo"
|
||||
"V2RayA/global"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/core/dnsPoison/entity"
|
||||
"v2rayA/core/routingA"
|
||||
"v2rayA/core/v2ray/asset"
|
||||
"v2rayA/core/vmessInfo"
|
||||
"v2rayA/global"
|
||||
"v2rayA/persistence/configure"
|
||||
"bytes"
|
||||
"fmt"
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
@ -430,8 +430,8 @@ func (t *Template) SetDNS(v vmessInfo.VmessInfo, supportUDP bool, setting *confi
|
||||
"geosite:cn", // 国内白名单走DNSPod
|
||||
"domain:ntp.org", // NTP 服务器
|
||||
"domain:dogedoge.com", // mzz2017爱用的多吉
|
||||
"full:v2raya.mzz.pub", // V2RayA demo
|
||||
"full:v.mzz.pub", // V2RayA demo
|
||||
"full:v2raya.mzz.pub", // v2rayA demo
|
||||
"full:v.mzz.pub", // v2rayA demo
|
||||
},
|
||||
}
|
||||
if len(dohDomains) > 0 {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package vmessInfo
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"v2rayA/common"
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"github.com/json-iterator/go"
|
||||
|
@ -1,8 +1,8 @@
|
||||
package gopeed
|
||||
|
||||
import (
|
||||
"V2RayA/extra/copyfile"
|
||||
"V2RayA/common"
|
||||
"v2rayA/extra/copyfile"
|
||||
"v2rayA/common"
|
||||
"fmt"
|
||||
gonanoid "github.com/matoous/go-nanoid"
|
||||
"io"
|
||||
|
@ -10,7 +10,7 @@
|
||||
package socks5
|
||||
|
||||
import (
|
||||
"V2RayA/extra/proxy"
|
||||
"v2rayA/extra/proxy"
|
||||
"github.com/mzz2017/shadowsocksR/tools/leakybuf"
|
||||
"github.com/nadoo/glider/common/socks"
|
||||
"io"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package ssr
|
||||
|
||||
import (
|
||||
"V2RayA/extra/proxy"
|
||||
"v2rayA/extra/proxy"
|
||||
"net"
|
||||
)
|
||||
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
"github.com/mzz2017/shadowsocksR/protocol"
|
||||
"github.com/mzz2017/shadowsocksR/ssr"
|
||||
|
||||
"V2RayA/extra/proxy"
|
||||
"v2rayA/extra/proxy"
|
||||
"github.com/nadoo/glider/common/socks"
|
||||
"log"
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
package trojan
|
||||
|
||||
import (
|
||||
"V2RayA/extra/proxy"
|
||||
"v2rayA/extra/proxy"
|
||||
"net"
|
||||
)
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
package trojan
|
||||
|
||||
import (
|
||||
"V2RayA/extra/proxy"
|
||||
"v2rayA/extra/proxy"
|
||||
"bytes"
|
||||
"crypto/sha256"
|
||||
"crypto/tls"
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
type Params struct {
|
||||
Address string `id:"address" short:"a" default:"0.0.0.0:2017" desc:"Listening address"`
|
||||
Config string `id:"config" short:"c" default:"/etc/v2ray/v2raya.json" desc:"V2RayA configure path"`
|
||||
Config string `id:"config" short:"c" default:"/etc/v2ray/v2raya.json" desc:"v2rayA configure path"`
|
||||
Mode string `id:"mode" short:"m" desc:"Options: systemctl, service, universal. Auto-detect if not set"`
|
||||
PluginListenPort int `short:"s" default:"12346" desc:"Plugin outbound port"`
|
||||
PassCheckRoot bool `desc:"Skip privilege checking. Use it only when you cannot start v2raya but confirm you have root privilege"`
|
||||
|
@ -1,7 +1,7 @@
|
||||
package global
|
||||
|
||||
import (
|
||||
"V2RayA/plugins"
|
||||
"v2rayA/plugins"
|
||||
"os"
|
||||
)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
module V2RayA
|
||||
module v2rayA
|
||||
|
||||
go 1.12
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "V2RayA/plugins/pingtunnel"
|
||||
_ "V2RayA/plugins/shadowsocksr"
|
||||
_ "V2RayA/plugins/trojan"
|
||||
_ "v2rayA/plugins/pingtunnel"
|
||||
_ "v2rayA/plugins/shadowsocksr"
|
||||
_ "v2rayA/plugins/trojan"
|
||||
"github.com/gin-gonic/gin"
|
||||
"log"
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
package configure
|
||||
|
||||
import (
|
||||
"V2RayA/core/ipforward"
|
||||
"V2RayA/global"
|
||||
"V2RayA/persistence"
|
||||
"v2rayA/core/ipforward"
|
||||
"v2rayA/global"
|
||||
"v2rayA/persistence"
|
||||
"bytes"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
|
@ -1,6 +1,6 @@
|
||||
package configure
|
||||
|
||||
import "V2RayA/core/vmessInfo"
|
||||
import "v2rayA/core/vmessInfo"
|
||||
|
||||
type ServerRaw struct {
|
||||
VmessInfo vmessInfo.VmessInfo `json:"vmessInfo"`
|
||||
|
@ -1,7 +1,7 @@
|
||||
package persistence
|
||||
|
||||
import (
|
||||
"V2RayA/global"
|
||||
"v2rayA/global"
|
||||
"bytes"
|
||||
"github.com/json-iterator/go"
|
||||
"github.com/tidwall/gjson"
|
||||
|
@ -4,10 +4,10 @@
|
||||
package pingtunnel
|
||||
|
||||
import (
|
||||
"V2RayA/common/netTools/ports"
|
||||
"V2RayA/core/vmessInfo"
|
||||
"V2RayA/global"
|
||||
"V2RayA/plugins"
|
||||
"v2rayA/common/netTools/ports"
|
||||
"v2rayA/core/vmessInfo"
|
||||
"v2rayA/global"
|
||||
"v2rayA/plugins"
|
||||
"github.com/mzz2017/go-engine/src/loggo"
|
||||
"github.com/mzz2017/go-engine/src/pingtunnel"
|
||||
"log"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package plugins
|
||||
|
||||
import (
|
||||
"V2RayA/core/vmessInfo"
|
||||
"v2rayA/core/vmessInfo"
|
||||
"strings"
|
||||
"sync"
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
package shadowsocksr
|
||||
|
||||
import (
|
||||
"V2RayA/common/netTools/ports"
|
||||
"V2RayA/core/vmessInfo"
|
||||
"V2RayA/extra/proxy/socks5"
|
||||
"V2RayA/extra/proxy/ssr"
|
||||
"V2RayA/plugins"
|
||||
"v2rayA/common/netTools/ports"
|
||||
"v2rayA/core/vmessInfo"
|
||||
"v2rayA/extra/proxy/socks5"
|
||||
"v2rayA/extra/proxy/ssr"
|
||||
"v2rayA/plugins"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/url"
|
||||
|
@ -4,12 +4,12 @@
|
||||
package trojan
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/common/netTools/ports"
|
||||
"V2RayA/core/vmessInfo"
|
||||
"V2RayA/extra/proxy/socks5"
|
||||
"V2RayA/extra/proxy/trojan"
|
||||
"V2RayA/plugins"
|
||||
"v2rayA/common"
|
||||
"v2rayA/common/netTools/ports"
|
||||
"v2rayA/core/vmessInfo"
|
||||
"v2rayA/extra/proxy/socks5"
|
||||
"v2rayA/extra/proxy/trojan"
|
||||
"v2rayA/plugins"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/url"
|
||||
|
@ -1,17 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"V2RayA/common/netTools/ports"
|
||||
"V2RayA/core/ipforward"
|
||||
"V2RayA/core/iptables"
|
||||
"V2RayA/core/v2ray"
|
||||
"V2RayA/core/v2ray/asset"
|
||||
"V2RayA/core/v2ray/asset/gfwlist"
|
||||
"V2RayA/extra/gopeed"
|
||||
"V2RayA/global"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/router"
|
||||
"V2RayA/service"
|
||||
"v2rayA/common/netTools/ports"
|
||||
"v2rayA/core/ipforward"
|
||||
"v2rayA/core/iptables"
|
||||
"v2rayA/core/v2ray"
|
||||
"v2rayA/core/v2ray/asset"
|
||||
"v2rayA/core/v2ray/asset/gfwlist"
|
||||
"v2rayA/extra/gopeed"
|
||||
"v2rayA/global"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/router"
|
||||
"v2rayA/service"
|
||||
"fmt"
|
||||
"github.com/gookit/color"
|
||||
jsonIteratorExtra "github.com/json-iterator/go/extra"
|
||||
@ -59,7 +59,7 @@ func testTproxy() {
|
||||
}
|
||||
func checkEnvironment() {
|
||||
if runtime.GOOS == "windows" {
|
||||
fmt.Println("windows不支持直接运行,请配合docker使用。见https://github.com/mzz2017/V2RayA")
|
||||
fmt.Println("windows不支持直接运行,请配合docker使用。见https://github.com/mzz2017/v2rayA")
|
||||
fmt.Println("请按任意键继续...")
|
||||
_, _ = fmt.Scanf("\n")
|
||||
os.Exit(1)
|
||||
@ -88,7 +88,7 @@ func checkEnvironment() {
|
||||
}
|
||||
process, err := socket.Process()
|
||||
if err == nil {
|
||||
log.Fatalf("V2RayA启动失败,%v端口已被%v/%v占用", port, process.Name, process.PID)
|
||||
log.Fatalf("v2rayA启动失败,%v端口已被%v/%v占用", port, process.Name, process.PID)
|
||||
}
|
||||
}
|
||||
testTproxy()
|
||||
@ -182,7 +182,7 @@ func hello() {
|
||||
wd, _ := asset.GetV2rayWorkingDir()
|
||||
color.Red.Println("V2Ray binary is at", wd+"/v2ray")
|
||||
wd, _ = os.Getwd()
|
||||
color.Red.Println("V2RayA working directory is", wd)
|
||||
color.Red.Println("v2rayA working directory is", wd)
|
||||
color.Red.Println("Version:", global.Version)
|
||||
}
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/common/jwt"
|
||||
"V2RayA/controller"
|
||||
"V2RayA/global"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/common"
|
||||
"v2rayA/common/jwt"
|
||||
"v2rayA/controller"
|
||||
"v2rayA/global"
|
||||
"v2rayA/persistence/configure"
|
||||
"github.com/gin-contrib/cors"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gookit/color"
|
||||
@ -23,7 +23,7 @@ func Run() error {
|
||||
engine.Use(cors.New(corsConfig))
|
||||
engine.GET("/", func(ctx *gin.Context) {
|
||||
ctx.Header("Content-Type", "text/html; charset=utf-8")
|
||||
ctx.String(418, `<body>Here is V2RayA backend. Reference: <a href="https://github.com/mzz2017/V2RayA">https://github.com/mzz2017/V2RayA</a></body>`)
|
||||
ctx.String(418, `<body>Here is v2rayA backend. Reference: <a href="https://github.com/mzz2017/v2rayA">https://github.com/mzz2017/v2rayA</a></body>`)
|
||||
})
|
||||
noAuth := engine.Group("api")
|
||||
{
|
||||
@ -74,7 +74,7 @@ func Run() error {
|
||||
auth.GET("routingA", controller.GetRoutingA)
|
||||
auth.PUT("routingA", controller.PutRoutingA)
|
||||
}
|
||||
color.Red.Println("V2RayA is running at", global.GetEnvironmentConfig().Address)
|
||||
color.Red.Println("v2rayA is running at", global.GetEnvironmentConfig().Address)
|
||||
color.Red.Println("GUI demo: https://v2raya.mzz.pub")
|
||||
app := global.GetEnvironmentConfig()
|
||||
return engine.Run(app.Address)
|
||||
|
@ -1,9 +1,9 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/common/jwt"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/common"
|
||||
"v2rayA/common/jwt"
|
||||
"v2rayA/persistence/configure"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"V2RayA/core/v2ray"
|
||||
"V2RayA/core/v2ray/asset/gfwlist"
|
||||
"V2RayA/global"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/core/v2ray"
|
||||
"v2rayA/core/v2ray/asset/gfwlist"
|
||||
"v2rayA/global"
|
||||
"v2rayA/persistence/configure"
|
||||
"log"
|
||||
)
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"V2RayA/common/httpClient"
|
||||
"V2RayA/core/nodeData"
|
||||
"V2RayA/core/touch"
|
||||
"V2RayA/core/v2ray"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/common/httpClient"
|
||||
"v2rayA/core/nodeData"
|
||||
"v2rayA/core/touch"
|
||||
"v2rayA/core/v2ray"
|
||||
"v2rayA/persistence/configure"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
@ -1,13 +1,13 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"V2RayA/common/httpClient"
|
||||
"V2RayA/common/netTools/netstat"
|
||||
"V2RayA/core/v2ray"
|
||||
"V2RayA/core/vmessInfo"
|
||||
"V2RayA/global"
|
||||
"V2RayA/persistence/configure"
|
||||
"V2RayA/plugins"
|
||||
"v2rayA/common/httpClient"
|
||||
"v2rayA/common/netTools/netstat"
|
||||
"v2rayA/core/v2ray"
|
||||
"v2rayA/core/vmessInfo"
|
||||
"v2rayA/global"
|
||||
"v2rayA/persistence/configure"
|
||||
"v2rayA/plugins"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
|
@ -1,10 +1,10 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"V2RayA/common/netTools/netstat"
|
||||
ports2 "V2RayA/common/netTools/ports"
|
||||
"V2RayA/core/v2ray"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/common/netTools/netstat"
|
||||
ports2 "v2rayA/common/netTools/ports"
|
||||
"v2rayA/core/v2ray"
|
||||
"v2rayA/persistence/configure"
|
||||
"fmt"
|
||||
"strconv"
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/core/nodeData"
|
||||
"V2RayA/core/vmessInfo"
|
||||
"v2rayA/common"
|
||||
"v2rayA/core/nodeData"
|
||||
"v2rayA/core/vmessInfo"
|
||||
"github.com/json-iterator/go"
|
||||
"log"
|
||||
"net/url"
|
||||
|
@ -1,10 +1,10 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"V2RayA/core/ipforward"
|
||||
"V2RayA/core/v2ray"
|
||||
"V2RayA/core/v2ray/asset"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/core/ipforward"
|
||||
"v2rayA/core/v2ray"
|
||||
"v2rayA/core/v2ray/asset"
|
||||
"v2rayA/persistence/configure"
|
||||
)
|
||||
|
||||
func GetSetting() *configure.Setting {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/persistence/configure"
|
||||
)
|
||||
|
||||
func GetSharingAddress(w *configure.Which) (addr string, err error) {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"V2RayA/core/siteDat"
|
||||
"V2RayA/core/v2ray/asset"
|
||||
"v2rayA/core/siteDat"
|
||||
"v2rayA/core/v2ray/asset"
|
||||
"github.com/gogo/protobuf/proto"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
|
@ -1,11 +1,11 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/common/httpClient"
|
||||
"V2RayA/core/nodeData"
|
||||
"V2RayA/core/touch"
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/common"
|
||||
"v2rayA/common/httpClient"
|
||||
"v2rayA/core/nodeData"
|
||||
"v2rayA/core/touch"
|
||||
"v2rayA/persistence/configure"
|
||||
"bytes"
|
||||
"log"
|
||||
"net/http"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"V2RayA/persistence/configure"
|
||||
"v2rayA/persistence/configure"
|
||||
)
|
||||
|
||||
func DeleteWhich(ws []configure.Which) (err error) {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"V2RayA/common"
|
||||
"V2RayA/global"
|
||||
"v2rayA/common"
|
||||
"v2rayA/global"
|
||||
"bytes"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
Loading…
Reference in New Issue
Block a user