Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #1700

Merged
merged 88 commits into from
Dec 22, 2023
Merged

Develop #1700

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
391727f
Limit the Skychay UI to localhost
Senyoret1 Jun 5, 2023
34179fe
Settings for Skychat
Senyoret1 Jun 9, 2023
37e20d9
Small lint fixes
Senyoret1 Jun 9, 2023
9140738
add --include-versions flag to skywire-cli log command
mrpalide Jun 11, 2023
8a29791
Merge branch 'develop' into fix/add-include-versions-flag-to-log-coll…
mrpalide Jun 11, 2023
458c156
As confirmation for Skychat access
Senyoret1 Jun 12, 2023
46bd9d2
merge develop into
mrpalide Jun 19, 2023
3c685e3
add new skywire-cli command as dmsghttp update
mrpalide Jun 21, 2023
f74a6e6
UI improvements
Senyoret1 Jul 13, 2023
d512632
update mainnet rules
0pcom Aug 28, 2023
35487b2
bump minimum version to current skywire version v1.3.13
0pcom Aug 30, 2023
7025a97
Merge pull request #1654 from 0pcom/mainnet-rules
jdknives Aug 30, 2023
9daabde
remove commented code
0pcom Sep 9, 2023
f105231
remove commented code
0pcom Sep 11, 2023
e806b56
fix condition on use testEnv flag
mrpalide Sep 15, 2023
c508a23
Merge pull request #1661 from mrpalide/fix/fix-wrong-confi-gen-with-t…
jdknives Sep 15, 2023
70726d3
replace dmsgget with dmsgcurl lib
mrpalide Oct 18, 2023
173bf88
fix issue on structure and conditions for fetch config data from onli…
mrpalide Oct 24, 2023
8c61f78
Merge pull request #1658 from 0pcom/remove-comments
mrpalide Oct 24, 2023
499658a
Merge pull request #1647 from Senyoret1/tab-ui
mrpalide Oct 25, 2023
1044109
add version to output on errors downloading
mrpalide Nov 1, 2023
3d02bd3
add . end of error
mrpalide Nov 1, 2023
1f8d718
add shutdown api
mrpalide Nov 1, 2023
df2fb43
remove restart logic from whole of the backend
mrpalide Nov 2, 2023
a99b2a6
remove reboot bottom from UI
mrpalide Nov 2, 2023
c7748aa
add shutdown UI from senyoret PR
mrpalide Nov 2, 2023
11840ed
fix shutdown bottom order
mrpalide Nov 2, 2023
e93ca59
Merge branch 'develop' into local-skychat
mrpalide Nov 2, 2023
7d0fd2e
Merge pull request #1605 from Senyoret1/local-skychat
mrpalide Nov 2, 2023
1ef913c
remove restart codes for windows
mrpalide Nov 2, 2023
a376685
replace panic with error on rpc overview
mrpalide Nov 2, 2023
cc50c1d
add condition on use tpM.WalkTransports on get list of transports by rpc
mrpalide Nov 2, 2023
3d020bc
improve error values
mrpalide Nov 2, 2023
a1b6446
add more condition for check tpM is available or not
mrpalide Nov 2, 2023
f962b68
Merge pull request #1671 from mrpalide/fix/panic-on-late-dmsg-connect…
jdknives Nov 2, 2023
c20a6bf
Merge pull request #1670 from mrpalide/fix/add-shutdown-api-remove-re…
jdknives Nov 2, 2023
8bcb1bc
Merge pull request #1669 from mrpalide/fix/add-skywire-version-to-log…
jdknives Nov 2, 2023
b6cad4e
Merge pull request #1666 from mrpalide/fix/handle-issue-on-fetch-data…
jdknives Nov 2, 2023
bd7790d
Merge branch 'develop' into fix/add-include-versions-flag-to-log-coll…
mrpalide Nov 3, 2023
ed53f06
fix linting issue
mrpalide Nov 3, 2023
c615652
Merge pull request #1617 from mrpalide/fix/add-include-versions-flag-…
mrpalide Nov 3, 2023
efee0e7
new UI updates
mrpalide Nov 3, 2023
7a87bcf
update CHANGELOG.md
mrpalide Nov 3, 2023
5bb7903
Update CHANGELOG.md
mrpalide Nov 3, 2023
3ed492a
Merge pull request #1672 from mrpalide/fix/build-new-ui
mrpalide Nov 3, 2023
e04fef7
update dmsg@develop
mrpalide Nov 11, 2023
826a287
Merge pull request #1628 from mrpalide/feat/add-dmsghttp-updater
jdknives Nov 18, 2023
d7d0ad7
update skywire-uititlies @ develop
mrpalide Nov 20, 2023
7fb1834
go mod tidy | go mod vendor
mrpalide Nov 20, 2023
4c03bd4
Merge pull request #1663 from mrpalide/fix/update-dmsg-for-using-dmsg…
jdknives Nov 20, 2023
207d054
Merge pull request #1676 from mrpalide/fix/update-skywire-utilities
mrpalide Nov 20, 2023
979baa8
update dmsg and skywire-utilities
mrpalide Nov 20, 2023
7c59949
Merge pull request #1677 from mrpalide/fix/update-dmsg-and-skywire-ut…
mrpalide Nov 20, 2023
2683198
`skywire-cli reward calc` (#1668)
0pcom Nov 27, 2023
5dc0aba
improve `skywire-cli ut` command logic (#1679)
mrpalide Dec 9, 2023
dc8d582
improve `skywire-cli proxy` command (#1680)
mrpalide Dec 10, 2023
df32a9a
new flag `--config-service` on generate config (#1683)
mrpalide Dec 10, 2023
9f64cd8
update skywire-cli README.md (#1684)
0pcom Dec 10, 2023
2c99655
Improvements for the UI (#1620)
Senyoret1 Dec 10, 2023
c4ddd24
Add CSRF protection to the Hypervisor API (#1604)
Senyoret1 Dec 10, 2023
7ab9478
Rebuild Hypervisor UI (#1685)
mrpalide Dec 10, 2023
e331583
Update Mainnet rules minimum version requirement (#1686)
0pcom Dec 10, 2023
e1a2c97
correct rewards update cutoff date (#1688)
0pcom Dec 10, 2023
34b4a3e
update dmsg servers list on dmsghttp-config.json file (#1687)
mrpalide Dec 10, 2023
aff1c74
add skysocks-client and skychat to Mac package installer
mrpalide Dec 11, 2023
b29b996
add skysocks-client to windows zip and installer release
mrpalide Dec 11, 2023
b705fe5
Merge pull request #1689 from mrpalide/fix/add-apps-to-package-installer
mrpalide Dec 11, 2023
ad5654b
add skysocks-client to windows archive
mrpalide Dec 11, 2023
0e14243
Merge pull request #1690 from mrpalide/fix/add-skysocks-client-to-win…
mrpalide Dec 11, 2023
2954b0d
remove skychat and skysocks-client app from disable apps in config gen
mrpalide Dec 11, 2023
a7e4a7e
remove disableapp flag from mac postinstall script
mrpalide Dec 11, 2023
f8127e5
Merge pull request #1691 from mrpalide/fix/improve-config-gen-command…
mrpalide Dec 11, 2023
003cebf
update golangci-lint to 1.55.2
mrpalide Dec 18, 2023
f4291e6
remove depguard from linting list, because of its conflict with golan…
mrpalide Dec 18, 2023
a222887
move from ioutil to os.WriteFile for dmsghttp command
mrpalide Dec 18, 2023
d4fbc9f
Merge pull request #1697 from mrpalide/feat/update-golangci-lint
mrpalide Dec 18, 2023
dd22b71
fix enable vpn server environmental variable detection for config gen…
0pcom Dec 18, 2023
34017a7
fix strtucture of riscv binary release (#1698)
mrpalide Dec 18, 2023
8393d9f
Update minimum version requirement in mainnet rules (#1699)
0pcom Dec 18, 2023
b8680e3
fix issue on cancel() func calling for proxy (skysocks) and vpn-client
mrpalide Dec 19, 2023
4e5baac
Merge pull request #1702 from mrpalide/fix/close-app-proxy-vpn-issue
mrpalide Dec 19, 2023
24df571
fix VPN issues on CI and Windows (#1703)
mrpalide Dec 20, 2023
5fa6e6e
update CHANGELOG.md
mrpalide Dec 20, 2023
7056094
Merge branch 'develop' into fix/get-ready-for-release-v1.3.16
mrpalide Dec 20, 2023
81f25d0
make ready version for windows installer script
mrpalide Dec 20, 2023
f56f42d
Merge pull request #1705 from mrpalide/fix/get-ready-for-release-v1.3.16
mrpalide Dec 20, 2023
8bb02c9
remove dummy character = from Product.wxs script
mrpalide Dec 20, 2023
d0b36f5
Merge pull request #1706 from mrpalide/fix/remove-dummy-character-fro…
mrpalide Dec 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: 1.21.x
- uses: actions/checkout@v3
- name: Install Requirements
run: |
Expand All @@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: 1.21.x
- uses: actions/checkout@v3
- name: Install Requirements
run: |
Expand All @@ -48,7 +48,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: 1.21.x
- uses: actions/checkout@v3
- name: Install Requirements
shell: pwsh
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: 1.21.x
- uses: actions/checkout@v3
- name: Install Requirements
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.1
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
make dep
chmod +x ./ci_scripts/create-ip-aliases.sh
./ci_scripts/create-ip-aliases.sh
Expand All @@ -25,11 +25,11 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: 1.21.x
- uses: actions/checkout@v3
- name: Install Requirements
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.1
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
make dep
chmod +x ./ci_scripts/create-ip-aliases.sh
./ci_scripts/create-ip-aliases.sh
Expand All @@ -44,12 +44,12 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: 1.21.x
- uses: actions/checkout@v3
- name: Install Requirements
run: |
choco install make
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.1
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
make dep
- name: Testing
run: |
Expand Down
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ linters:
- megacheck
- misspell
- nakedret
- depguard
enable-all: false
disable-all: true
presets:
Expand Down
10 changes: 5 additions & 5 deletions .goreleaser-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ builds:
ldflags: -s -w -linkmode external -extldflags '-static' -buildid= -X github.com/skycoin/skywire-utilities/pkg/buildinfo.version=v{{.Version}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.commit={{.ShortCommit}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.date={{.Date}}

- id: skychat-riscv64
binary: skychat
binary: apps/skychat
goos:
- linux
goarch:
Expand Down Expand Up @@ -262,7 +262,7 @@ builds:
ldflags: -s -w -linkmode external -extldflags '-static' -buildid= -X github.com/skycoin/skywire-utilities/pkg/buildinfo.version=v{{.Version}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.commit={{.ShortCommit}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.date={{.Date}}

- id: skysocks-riscv64
binary: skysocks
binary: apps/skysocks
goos:
- linux
goarch:
Expand Down Expand Up @@ -326,7 +326,7 @@ builds:
ldflags: -s -w -linkmode external -extldflags '-static' -buildid= -X github.com/skycoin/skywire-utilities/pkg/buildinfo.version=v{{.Version}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.commit={{.ShortCommit}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.date={{.Date}}

- id: skysocks-client-riscv64
binary: skysocks-client
binary: apps/skysocks-client
goos:
- linux
goarch:
Expand Down Expand Up @@ -390,7 +390,7 @@ builds:
ldflags: -s -w -linkmode external -extldflags '-static' -buildid= -X github.com/skycoin/skywire-utilities/pkg/buildinfo.version=v{{.Version}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.commit={{.ShortCommit}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.date={{.Date}}

- id: vpn-server-riscv64
binary: vpn-server
binary: apps/vpn-server
goos:
- linux
goarch:
Expand Down Expand Up @@ -454,7 +454,7 @@ builds:
ldflags: -s -w -linkmode external -extldflags '-static' -buildid= -X github.com/skycoin/skywire-utilities/pkg/buildinfo.version=v{{.Version}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.commit={{.ShortCommit}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.date={{.Date}}

- id: vpn-client-riscv64
binary: vpn-client
binary: apps/vpn-client
goos:
- linux
goarch:
Expand Down
13 changes: 13 additions & 0 deletions .goreleaser-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ builds:
main: ./cmd/apps/vpn-client/
ldflags: -s -w -X github.com/skycoin/skywire-utilities/pkg/buildinfo.version=v{{.Version}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.commit={{.ShortCommit}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.date={{.Date}}

- id: skysocks-client
binary: apps/skysocks-client
goos:
- windows
goarch:
- amd64
- 386
env:
- CGO_ENABLED=0
main: ./cmd/apps/skysocks-client/
ldflags: -s -w -X github.com/skycoin/skywire-utilities/pkg/buildinfo.version=v{{.Version}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.commit={{.ShortCommit}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.date={{.Date}}

archives:
- id: archive
format: zip
Expand All @@ -62,6 +74,7 @@ archives:
- skywire-visor
- skywire-cli
- vpn-client
- skysocks-client
allow_different_binary_count: true

checksum:
Expand Down
81 changes: 80 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,92 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

updates may be generated with `scripts/changelog.sh <PR#lowest> <PR#highest>`

## 1.3.16

- fix VPN issues on CI and Windows [#1703](https://github.com/skycoin/skywire/pull/1703)
- fix logic of close app [#1702](https://github.com/skycoin/skywire/pull/1702)

## 1.3.15

- Update minimum version requirement in mainnet rules [#1699](https://github.com/skycoin/skywire/pull/1699)
- `riscv64` archive structure [#1698](https://github.com/skycoin/skywire/pull/1698)
- update golangci-lint [#1697](https://github.com/skycoin/skywire/pull/1697)
- fix enable vpn server environmental variable detection for config gen [#1695](https://github.com/skycoin/skywire/pull/1695)

## 1.3.14

- improve postinstall script on Mac installer [#1691](https://github.com/skycoin/skywire/pull/1691)
- add skysocks client to windows archive [#1690](https://github.com/skycoin/skywire/pull/1690)
- add missed apps to package installer [#1689](https://github.com/skycoin/skywire/pull/1689)
- correct rewards update cutoff date [#1688](https://github.com/skycoin/skywire/pull/1688)
- update dmsghttp-config.json file [#1687](https://github.com/skycoin/skywire/pull/1687)
- Update Mainnet rules minimum version requirement [#1686](https://github.com/skycoin/skywire/pull/1686)
- Rebuild Hypervisor UI [#1685](https://github.com/skycoin/skywire/pull/1685)
- Update skywire-cli README.md [#1684](https://github.com/skycoin/skywire/pull/1684)
- new flag `--confpath` on generate config [#1683](https://github.com/skycoin/skywire/pull/1683)
- improve `skywire-cli proxy` command [#1680](https://github.com/skycoin/skywire/pull/1680)
- improve `skywire-cli ut` command logic [#1679](https://github.com/skycoin/skywire/pull/1679)
- update dmsg and skywire-utilities [#1677](https://github.com/skycoin/skywire/pull/1677)
- Fix/update skywire utilities [#1676](https://github.com/skycoin/skywire/pull/1676)
- Rebuild Hypervisor UI [#1672](https://github.com/skycoin/skywire/pull/1672)
- Fix two panic issues on `skywire-cli` commands [#1671](https://github.com/skycoin/skywire/pull/1671)
- Improve UI and Backend on `reboot` and `turn off` [#1670](https://github.com/skycoin/skywire/pull/1670)

## 1.3.10 - 1.3.13

- add skywire version to `skywire-cli log` [#1669](https://github.com/skycoin/skywire/pull/1669)
- `skywire-cli reward calc` [#1668](https://github.com/skycoin/skywire/pull/1668)
- fix issue fetching data from hardcoded server [#1666](https://github.com/skycoin/skywire/pull/1666)
- replace dmsgget with dmsgcurl lib [#1663](https://github.com/skycoin/skywire/pull/1663)
- Fix wrong config generation with t flag [#1661](https://github.com/skycoin/skywire/pull/1661)
- Remove Comments [#1658](https://github.com/skycoin/skywire/pull/1658)
- Develop [#1655](https://github.com/skycoin/skywire/pull/1655)
- Update minimum version requirement in mainnet rules [#1654](https://github.com/skycoin/skywire/pull/1654)
- Fix transport bandwidth logs [#1653](https://github.com/skycoin/skywire/pull/1653)
- fix `ping` command logic [#1652](https://github.com/skycoin/skywire/pull/1652)
- improve ping command output [#1651](https://github.com/skycoin/skywire/pull/1651)
- Update Mainnet rules ; increment minimum version requirement [#1650](https://github.com/skycoin/skywire/pull/1650)
- improve `skywire-cli log` command [#1648](https://github.com/skycoin/skywire/pull/1648)
- UI improvements [#1647](https://github.com/skycoin/skywire/pull/1647)
- v1.3.11 [#1645](https://github.com/skycoin/skywire/pull/1645)
- source a .conf file with skywire-cli config gen [#1644](https://github.com/skycoin/skywire/pull/1644)
- UI for turning off the visor [#1642](https://github.com/skycoin/skywire/pull/1642)
- Update dmsghttp config [#1632](https://github.com/skycoin/skywire/pull/1632)
- Use `MarkFlagsMutuallyExclusive` for `config gen -rf` and `config gen -up` [#1629](https://github.com/skycoin/skywire/pull/1629)
- [WIP] dmsghttp updater [#1628](https://github.com/skycoin/skywire/pull/1628)
- Vendor dmsg@master and replace two yamux deps [#1626](https://github.com/skycoin/skywire/pull/1626)
- `skywire-cli log` collect transport bandwidth logging for today [#1625](https://github.com/skycoin/skywire/pull/1625)
- reduce `transport_manager` timeout on module shutting down [#1624](https://github.com/skycoin/skywire/pull/1624)
- collect surveys from online visors only [#1623](https://github.com/skycoin/skywire/pull/1623)
- Improvements for the UI [#1620](https://github.com/skycoin/skywire/pull/1620)
- Add details to mainnet rules article [#1618](https://github.com/skycoin/skywire/pull/1618)
- add new flag to log command [#1617](https://github.com/skycoin/skywire/pull/1617)
- improve log collection logic [#1615](https://github.com/skycoin/skywire/pull/1615)
- update dependencies [#1614](https://github.com/skycoin/skywire/pull/1614)
- fix GitHub Action [#1613](https://github.com/skycoin/skywire/pull/1613)
- `skywire-cli config gen -r` test [#1611](https://github.com/skycoin/skywire/pull/1611)
- Limit the Skychay UI to localhost [#1605](https://github.com/skycoin/skywire/pull/1605)
- Add CSRF protection to the Hypervisor API [#1604](https://github.com/skycoin/skywire/pull/1604)
- fix dockerhub username and token [#1601](https://github.com/skycoin/skywire/pull/1601)
- Fix/makefile clean target [#1600](https://github.com/skycoin/skywire/pull/1600)
- Merge Develop to Master [#1599](https://github.com/skycoin/skywire/pull/1599)
- Add dmsghttp servers [#1597](https://github.com/skycoin/skywire/pull/1597)
- fix release issue on mac and win [#1593](https://github.com/skycoin/skywire/pull/1593)
- remove .asc file from archives of release [#1592](https://github.com/skycoin/skywire/pull/1592)
- Fix `skywire-cli config gen -r` [#1591](https://github.com/skycoin/skywire/pull/1591)
- Merge develop to master [#1589](https://github.com/skycoin/skywire/pull/1589)
- Remove pgp key previously used for survey collection on earlier versions [#1588](https://github.com/skycoin/skywire/pull/1588)
- Update Command Documentation [#1587](https://github.com/skycoin/skywire/pull/1587)
- Fix config gen logic for fetching services &amp; erroneous app config [#1586](https://github.com/skycoin/skywire/pull/1586)
- change json of service struct to transport_setup [#1585](https://github.com/skycoin/skywire/pull/1585)
- fix wrong variable name for config gen [#1584](https://github.com/skycoin/skywire/pull/1584)

## 1.3.9

- Fix `skywire-cli config gen -r`

## 1.3.8

- Rebuild Hypervisor UI [#1583](https://github.com/skycoin/skywire/pull/1583)
- Rebuild Hypervisor UI [#1583](https://github.com/skycoin/skywire/pull/1583)
- Change Logserver to use c.JSON method ; remove variable for endpoint name '/node-info' [#1582](https://github.com/skycoin/skywire/pull/1582)
- update changelog [#1580](https://github.com/skycoin/skywire/pull/1580)
Expand Down
19 changes: 16 additions & 3 deletions cmd/apps/skychat/skychat.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const (
port = routing.Port(1)
)

var addr = flag.String("addr", ":8001", "address to bind")
var addr = flag.String("addr", ":8001", "address to bind, put an * before the port if you want to be able to access outside localhost")
var r = netutil.NewRetrier(nil, 50*time.Millisecond, netutil.DefaultMaxBackoff, 5, 2)

var (
Expand Down Expand Up @@ -84,7 +84,20 @@ func main() {
http.HandleFunc("/message", messageHandler(ctx))
http.HandleFunc("/sse", sseHandler)

fmt.Println("Serving HTTP on", *addr)
url := ""
address := *addr
if len(address) < 5 || (address[:1] != ":" && address[:2] != "*:") {
url = "127.0.0.1:8001"
} else if address[:1] == ":" {
url = "127.0.0.1" + address
} else if address[:2] == "*:" {
url = address[1:]
} else {
url = "127.0.0.1:8001"
}

fmt.Println("Serving HTTP on", url)

if runtime.GOOS != "windows" {
termCh := make(chan os.Signal, 1)
signal.Notify(termCh, os.Interrupt)
Expand All @@ -97,7 +110,7 @@ func main() {
}
setAppStatus(appCl, appserver.AppDetailedStatusRunning)
srv := &http.Server{ //nolint gosec
Addr: *addr,
Addr: url,
ReadTimeout: 5 * time.Second,
WriteTimeout: 10 * time.Second,
}
Expand Down
Loading
Loading