-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1379
committed
Oct 29, 2022
0 parents
commit 1bfdc2d
Showing
390 changed files
with
33,925 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
如果你遇到的问题不是 Sonic 的 bug,比如你不清楚要如何配置,请使用[Discussion](https://github.com/go-sonic/discussion/issues)进行讨论。 | ||
|
||
此 Issue 会被立即关闭。 | ||
|
||
If you are not sure if your question is truely a bug in Sonic, please discuss it [here](https://github.com/go-sonic/discussion/issues) first. | ||
|
||
This issue will be closed immediately. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
name: V2Ray 程序问题 | ||
about: "提交一个 V2Ray 的程序问题报告。" | ||
--- | ||
|
||
<!-- | ||
除非特殊情况,请完整填写所有问题。不按模板发的 issue 将直接被关闭。 | ||
如果你遇到的问题不是 V2Ray 的 bug,比如你不清楚如何配置,请在 https://github.com/v2fly/v2ray-core/discussions 进行讨论。 | ||
--> | ||
|
||
## 你正在使用哪个版本的 V2Ray? | ||
|
||
<!-- 如果服务端和客户端使用了不同版本,请注明 --> | ||
|
||
|
||
## 你的使用场景是什么? | ||
|
||
<!-- 比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频 --> | ||
|
||
|
||
## 你看到的异常现象是什么? | ||
|
||
<!-- 请描述具体现象,比如访问超时、TLS 证书错误等 --> | ||
|
||
|
||
## 你期待看到的正常表现是怎样的? | ||
|
||
|
||
|
||
## 请附上你的配置 | ||
|
||
<!-- 提交 issue 前,请隐去服务器域名或 IP 地址 --> | ||
|
||
**服务端配置:** | ||
|
||
```javascript | ||
// 在这里附上服务器端配置文件 | ||
|
||
``` | ||
|
||
**客户端配置:** | ||
|
||
```javascript | ||
// 在这里附上客户端配置 | ||
|
||
``` | ||
|
||
## 请附上出错时软件输出的错误日志 | ||
|
||
<!-- 在 Linux 中,日志通常在 `/var/log/v2ray/error.log` 文件中 --> | ||
|
||
**服务器端错误日志:** | ||
|
||
```javascript | ||
// 在这里附上服务器端日志 | ||
|
||
``` | ||
|
||
**客户端错误日志:** | ||
|
||
```javascript | ||
// 在这里附上客户端日志 | ||
|
||
``` | ||
|
||
## 请附上访问日志 | ||
|
||
<!-- 在 Linux 中,访问日志通常在 `/var/log/v2ray/access.log` 文件中 --> | ||
|
||
```javascript | ||
// 在这里附上服务器端日志 | ||
|
||
``` | ||
|
||
## 其它相关的配置文件(如 Nginx)和相关日志 | ||
|
||
|
||
|
||
## 如果 V2Ray 无法启动,请附上 `--test` 命令的输出 | ||
|
||
|
||
|
||
## 如果 V2Ray 服务运行异常,请附上 journal 日志 | ||
|
||
<!-- 通常的命令为 `journalctl -u v2ray` --> | ||
|
||
<!-- 请预览一下你填写的内容并整理好格式后,再提交 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
--- | ||
name: Bug report | ||
about: "Create a bug report to help us improve" | ||
--- | ||
|
||
<!-- | ||
Please answer all the questions with enough information. All issues not following this template will be closed immediately. | ||
If you are not sure if your question is truely a bug of V2Ray, please discuss it at https://github.com/v2fly/v2ray-core/discussions first. | ||
--> | ||
|
||
## What version of V2Ray are you using? | ||
|
||
<!-- If you deploy different versions of V2Ray on server and client, please explicitly point out --> | ||
|
||
|
||
## What's your scenario of using V2Ray? | ||
|
||
<!-- E.g., watching YouTube videos in browsers via Socks/VMess proxy --> | ||
|
||
|
||
## What problems have you encountered? | ||
|
||
<!-- Please describe in detail, such as timeout, fake TLS certificate, etc --> | ||
|
||
|
||
## What's your expectation? | ||
|
||
|
||
|
||
## Please attach your configuration here | ||
|
||
<!-- Remember to mask your IP address or hostname --> | ||
|
||
**Server configuration:** | ||
|
||
```javascript | ||
// Please attach your server configuration here. | ||
|
||
``` | ||
|
||
**Client configuration:** | ||
|
||
```javascript | ||
// Please attach your client configuration here. | ||
|
||
``` | ||
|
||
## Please attach error logs here | ||
|
||
<!-- | ||
only trailing lines if the log file is large in size. | ||
Error log file is usually at `/var/log/v2ray/error.log` on Linux. | ||
--> | ||
|
||
**Server error log:** | ||
|
||
```javascript | ||
// Please attach your server error log here. | ||
|
||
``` | ||
|
||
**Client error log:** | ||
|
||
```javascript | ||
// Please attach your client error log here. | ||
|
||
``` | ||
|
||
## Please attach access log here | ||
|
||
<!-- Access log is usually at '/var/log/v2ray/access.log' on Linux. --> | ||
|
||
```javascript | ||
// Please attach your server access log here. | ||
|
||
``` | ||
|
||
## Other configurations (such as Nginx) and logs here | ||
|
||
|
||
|
||
## If V2Ray cannot start up, please attach output from `--test` command | ||
|
||
|
||
|
||
## If V2Ray service is abnormal, please attach journal log here | ||
|
||
<!-- Usual command is `journalctl -u v2ray` --> | ||
|
||
<!-- Please review your issue and check the format before submitting. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
name: Other | ||
about: "其它问题请使用 https://github.com/v2fly/v2ray-core/discussions 进行讨论 / Please discuss other issues at https://github.com/v2fly/v2ray-core/discussions" | ||
--- | ||
|
||
如果你遇到的问题不是 V2Ray 的 bug,比如你不清楚要如何配置,请使用[Discussion](https://github.com/v2fly/v2ray-core/discussions)进行讨论。 | ||
|
||
此 Issue 会被立即关闭。 | ||
|
||
If you are not sure if your question is truely a bug in V2Ray, please discuss it [here](https://github.com/v2fly/v2ray-core/discussions) first. | ||
|
||
This issue will be closed immediately. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
open-pull-requests-limit: 10 | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
run: | ||
timeout: 5m | ||
skip-files: | ||
- .gen.go | ||
- .pb.go | ||
|
||
issues: | ||
new: true | ||
exclude-rules: | ||
- linters: | ||
- staticcheck | ||
text: "SA1019:" | ||
- linters: | ||
- stylecheck | ||
text: "ST1016:" | ||
|
||
linters: | ||
enable: | ||
- asciicheck | ||
- bodyclose | ||
- depguard | ||
- gocritic | ||
- gofmt | ||
- gofumpt | ||
- goimports | ||
- goprintffuncname | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- nakedret | ||
- revive | ||
- rowserrcheck | ||
- staticcheck | ||
- structcheck | ||
- stylecheck | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- varcheck | ||
- whitespace | ||
disable: | ||
- deadcode | ||
- errcheck | ||
- unused | ||
|
||
linters-settings: | ||
goimports: | ||
local-prefixes: github.com/go-sonic/sonic | ||
revive: | ||
rules: | ||
- name: blank-imports | ||
severity: warning | ||
disabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: CodeQL | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
types: [opened, synchronize, reopened] | ||
paths-ignore: | ||
- '**/*.md' | ||
- '**/*.txt' | ||
|
||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: ["go"] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Linter | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- v* | ||
paths: | ||
- "**/*.go" | ||
- ".github/workflows/linter.yml" | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- "**/*.go" | ||
- ".github/workflows/linter.yml" | ||
|
||
jobs: | ||
lint: | ||
if: github.repository == 'go-sonic/sonic' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ^1.19 | ||
|
||
- name: Checkout codebase | ||
uses: actions/checkout@v3 | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: latest | ||
args: --config=.github/linters/.golangci.yml | ||
only-new-issues: true |
Oops, something went wrong.