Skip to content

Commit

Permalink
chore: rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythologyli committed Feb 6, 2023
1 parent d610766 commit f4e000f
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,32 +96,32 @@ jobs:
- name: Build
run: |
mkdir -p build_assets
go build -v -o build_assets/ZJUConnect -trimpath -ldflags "-s -w -buildid=" .
go build -v -o build_assets/zju-connect -trimpath -ldflags "-s -w -buildid=" .
- name: Rename Windows ZJUConnect
- name: Rename Windows zju-connect
if: matrix.goos == 'windows'
run: |
cd ./build_assets || exit 1
mv ZJUConnect ZJUConnect.exe
mv zju-connect zju-connect.exe
- name: Upload artifact
if: github.event_name != 'release'
uses: actions/upload-artifact@v2
with:
name: ZJUConnect-${{ steps.get_filename.outputs.ASSET_NAME }}.zip
name: zju-connect-${{ steps.get_filename.outputs.ASSET_NAME }}.zip
path: build_assets/*

- name: Create ZIP archive
if: github.event_name == 'release'
run: |
pushd build_assets || exit 1
zip -9vr ../ZJUConnect-$ASSET_NAME.zip .
zip -9vr ../zju-connect-$ASSET_NAME.zip .
popd || exit 1
- name: Upload release binary
if: github.event_name == 'release'
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
gh release upload ${{ github.event.release.tag_name }} ZJUConnect-${{ steps.get_filename.outputs.ASSET_NAME }}.zip
gh release upload ${{ github.event.release.tag_name }} zju-connect-${{ steps.get_filename.outputs.ASSET_NAME }}.zip
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

### 使用方法

*Windows 用户可以使用 GUI 版 [ZJU Connect for Windows](https://github.com/Mythologyli/ZJU-Connect-for-Windows)*
*Windows 用户可以使用 GUI 版 [ZJU Connect for Windows](https://github.com/mythologyli/zju-connect-for-Windows)*

1.[Release](https://github.com/Mythologyli/ZJU-Connect/releases) 页面下载对应平台的最新版本。
1.[Release](https://github.com/mythologyli/zju-connect/releases) 页面下载对应平台的最新版本。

2. 以 Linux 平台为例,解压出可执行文件 `ZJUConnect`
2. 以 Linux 平台为例,解压出可执行文件 `zju-connect`

3. 命令行运行:`./ZJUConnect -username <上网账户> -password <密码>`
3. 命令行运行:`./zju-connect -username <上网账户> -password <密码>`

4. 此时 `1080` 端口为 Socks5 代理,`1081` 端口为 HTTP 代理。

Expand Down Expand Up @@ -75,8 +75,8 @@

### 贡献者

<a href="https://github.com/Mythologyli/ZJU-Connect/graphs/contributors">
<img src="https://contrib.rocks/image?repo=Mythologyli/ZJU-Connect" />
<a href="https://github.com/mythologyli/zju-connect/graphs/contributors">
<img src="https://contrib.rocks/image?repo=mythologyli/zju-connect" />
</a>

### 感谢
Expand Down
2 changes: 1 addition & 1 deletion core/EasyConnectClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net"
"runtime"

"ZJUConnect/parser"
"github.com/mythologyli/zju-connect/parser"

"gvisor.dev/gvisor/pkg/tcpip/stack"
)
Expand Down
2 changes: 1 addition & 1 deletion core/socks.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strconv"
"strings"

"ZJUConnect/core/config"
"github.com/mythologyli/zju-connect/core/config"

"github.com/cxz66666/go-socks5"
"gvisor.dev/gvisor/pkg/tcpip"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module ZJUConnect
module github.com/mythologyli/zju-connect

go 1.19

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"ZJUConnect/core"
"flag"
"fmt"
"github.com/mythologyli/zju-connect/core"
"os"
)

Expand Down Expand Up @@ -48,7 +48,7 @@ func main() {

if host == "" || ((username == "" || password == "") && twfId == "") {
fmt.Println("ZJU Connect")
fmt.Println("Please see: https://github.com/Mythologyli/ZJU-Connect")
fmt.Println("Please see: https://github.com/mythologyli/zju-connect")
fmt.Printf("\nUsage: %s -username <username> -password <password>\n", os.Args[0])
fmt.Println("\nFull usage:")
flag.PrintDefaults()
Expand Down
2 changes: 1 addition & 1 deletion parser/RulesParser.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package parser

import (
"ZJUConnect/core/config"
"fmt"
"github.com/mythologyli/zju-connect/core/config"
"log"
"math"
"net"
Expand Down
2 changes: 1 addition & 1 deletion parser/ZjuParser.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package parser

import "ZJUConnect/core/config"
import "github.com/mythologyli/zju-connect/core/config"

func ParseZjuDnsRules(debug bool) {

Expand Down

0 comments on commit f4e000f

Please sign in to comment.