Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gost
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gost
Commits
74659324
Commit
74659324
authored
Apr 13, 2022
by
ginuerzh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update snapcraft build
parent
cc871182
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
70 additions
and
15 deletions
+70
-15
.gitignore
.gitignore
+0
-1
go.mod
go.mod
+3
-3
go.sum
go.sum
+32
-8
gost.png
gost.png
+0
-0
kcp.go
kcp.go
+2
-2
signal_unix.go
signal_unix.go
+2
-1
snap/snapcraft.yaml
snap/snapcraft.yaml
+31
-0
No files found.
.gitignore
View file @
74659324
...
...
@@ -32,4 +32,3 @@ _testmain.go
.vscode/
cmd/gost/gost
snap
go.mod
View file @
74659324
...
...
@@ -22,7 +22,7 @@ require (
github.com/shadowsocks/go-shadowsocks2 v0.1.5
github.com/shadowsocks/shadowsocks-go v0.0.0-20200409064450-3e585ff90601
github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8
github.com/xtaci/kcp-go
v5.4.20+incompatible
github.com/xtaci/kcp-go
/v5 v5.6.1
github.com/xtaci/smux v1.5.16
github.com/xtaci/tcpraw v1.2.25
gitlab.com/yawning/obfs4.git v0.0.0-20210511220700-e330d1b7024b
...
...
@@ -47,8 +47,8 @@ require (
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/riobard/go-bloom v0.0.0-20200614022211-cdc8013cb5b3 // indirect
github.com/templexxx/cpu
feat v0.0.0-20180724012125-cef66df7f161
// indirect
github.com/templexxx/xor
v0.0.0-20191217153810-f85b25db303b
// indirect
github.com/templexxx/cpu
v0.0.7
// indirect
github.com/templexxx/xor
simd v0.4.1
// indirect
github.com/tjfoc/gmsm v1.4.1 // indirect
github.com/xtaci/lossyconn v0.0.0-20200209145036-adba10fffc37 // indirect
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect
...
...
go.sum
View file @
74659324
This diff is collapsed.
Click to expand it.
gost.png
0 → 100644
View file @
74659324
41.3 KB
kcp.go
View file @
74659324
...
...
@@ -15,9 +15,9 @@ import (
"github.com/go-log/log"
"github.com/klauspost/compress/snappy"
"github.com/xtaci/tcpraw"
"github.com/xtaci/kcp-go"
"github.com/xtaci/kcp-go/v5"
"github.com/xtaci/smux"
"github.com/xtaci/tcpraw"
)
var
(
...
...
signal_unix.go
View file @
74659324
//go:build !windows
// +build !windows
package
gost
...
...
@@ -8,7 +9,7 @@ import (
"syscall"
"github.com/go-log/log"
"github.com/xtaci/kcp-go"
"github.com/xtaci/kcp-go
/v5
"
)
func
kcpSigHandler
()
{
...
...
snapcraft.yaml
→
snap
/snap
craft.yaml
View file @
74659324
name
:
gost
type
:
app
base
:
core20
version
:
'
2.11.2'
title
:
GO Simple Tunnel
summary
:
A simple security tunnel written in golang
description
:
|
https://github.com/ginuerzh/gost
Project: https://github.com/ginuerzh/gost
Wiki: https://v2.gost.run
icon
:
gost.png
confinement
:
strict
grade
:
stable
base
:
core18
license
:
MIT
parts
:
gost
:
plugin
:
nil
build-snaps
:
[
go/1.18/stable
]
source
:
https://github.com/ginuerzh/gost
.git
plugin
:
go
go-channel
:
latest/stable
source
:
https://github.com/ginuerzh/gost
source-subdir
:
cmd/gost
source-type
:
git
source-
branch
:
'
2'
source-
tag
:
v2.11.2
build-packages
:
-
build-essential
override-build
:
|
set -ex
echo "Starting override-build:"
pwd
cd $SNAPCRAFT_PART_BUILD
GO111MODULE=on CGO_ENABLED=0 go build --ldflags="-s -w"
./gost -V
echo "Installing to ${SNAPCRAFT_PART_INSTALL}..."
install -d $SNAPCRAFT_PART_INSTALL/bin
cp -v gost $SNAPCRAFT_PART_INSTALL/bin/
-
gcc
echo "Override-build done!"
apps
:
gost
:
command
:
bin/gost
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment