Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
PRs are welcome!

Please see TODOs in code for known issues.
Please create a GitHub issue to discuss and relate a PR to that issue.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Implementation of [fmsg](https://github.com/markmnl/fmsg) host written in go! Us

## Building from source

Tested with go 1.25 on Linux (AMD64, ARM64) and Windows AMD64
Tested with Go 1.25 on Linux and Windows, AMD64 and ARM

1. Clone this repository
2. Navigate to src/
Expand All @@ -16,7 +16,7 @@ Tested with go 1.25 on Linux (AMD64, ARM64) and Windows AMD64

## Environment

fmsgd uses environment variables as a control surface. `FMSG_DATA_DIR`, `FMSG_DOMAIN` and `FMSG_ID_URL` are required to be set; otherwise the host will fail to start. In addition to these `FMSG_` varibles, `PG` variables need to be set for the PostgreSQL database to use, refer to: https://www.postgresql.org/docs/current/libpq-envars.html
fmsgd uses environment variables, `FMSG_DATA_DIR`, `FMSG_DOMAIN` and `FMSG_ID_URL` are required to be set; otherwise the host will fail to start. In addition to these `FMSG_` varibles, `PG` variables need to be set for the PostgreSQL database to use, refer to: https://www.postgresql.org/docs/current/libpq-envars.html

| Variable | Default | Description |
|----------------------------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------|
Expand Down
6 changes: 3 additions & 3 deletions src/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,10 @@ func main() {
}

// get listen address from args
if len(os.Args) < 2 {
log.Fatalf("ERROR: Listen address is required as an argument, e.g.: \"0.0.0.0\"\n")
listenAddress := "127.0.0.1"
if len(os.Args) >= 2 {
listenAddress = os.Args[1]
}
listenAddress := os.Args[1]

// initalize database
err := testDb()
Expand Down