Skip to content

Commit

Permalink
fix proxy/pong
Browse files Browse the repository at this point in the history
  • Loading branch information
pingworlds committed Mar 4, 2022
1 parent a17943d commit fbe1d5a
Show file tree
Hide file tree
Showing 7 changed files with 190 additions and 136 deletions.
7 changes: 5 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,17 @@ builds:
- goos: openbsd
goarch: arm64

archives:

archives:
- replacements:
386: i386
format_overrides:
- goos: windows
format: zip
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
files:
- LICENSE
- README.md
- pong.service

checksum:
name_template: 'checksums.txt'
Expand Down
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type config struct {
AutoTry bool
AutoOrderPoint bool
PerMaxCount int
WriteBuffer int
}

func (c config) String() string {
Expand Down
15 changes: 15 additions & 0 deletions pong.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=pong service
Documentation=https://github.com/pingworlds/pong
After=network.target network-online.target nss-lookup.target

[Service]
Type=simple
StandardError=journal
ExecStart=/usr/bin/pong -d /usr/local/pong
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=3s

[Install]
WantedBy=multi-user.target

0 comments on commit fbe1d5a

Please sign in to comment.