Skip to content
Open
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
39 changes: 39 additions & 0 deletions cmd/jimm_payload_audit/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package main

import (
"fmt"
"os"

"github.com/mk6i/open-oscar-server/foodgroup"
)

func main() {
results, err := foodgroup.Jimm060FullInfoPayloadAudit()
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}

var failed bool
for _, res := range results {
if res.Err != nil {
failed = true
fmt.Printf("%s: FAIL: %v\n", res.Name, res.Err)
if res.PayloadHex != "" {
fmt.Printf("%s: hex=%s\n", res.Name, res.PayloadHex)
}
for _, line := range res.Trace {
fmt.Printf(" %s\n", line)
}
continue
}
fmt.Printf("%s: OK hex=%s\n", res.Name, res.PayloadHex)
for _, line := range res.Trace {
fmt.Printf(" %s\n", line)
}
}

if failed {
os.Exit(1)
}
}
5 changes: 2 additions & 3 deletions config/settings.env
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export TOC_LISTENERS=0.0.0.0:9898

# Network listener for management API binds to. Only 1 listener can be
# specified. (Default 127.0.0.1 restricts to same machine only).
export API_LISTENER=127.0.0.1:8080
export API_LISTENER=127.0.0.1:18080

# The path to the SQLite database file. The file and DB schema are auto-created
# if they doesn't exist.
Expand All @@ -67,7 +67,7 @@ export LOG_LEVEL=info

# Enable legacy ICQ protocol support (v2-v5). Allows vintage ICQ clients to
# connect.
export ICQ_LEGACY_ENABLED=true
export ICQ_LEGACY_ENABLED=false

# UDP listener address for legacy ICQ protocols.
#
Expand Down Expand Up @@ -109,4 +109,3 @@ export ICQ_LEGACY_WWP_ENABLED=true
# Required for peer-to-peer features (file transfer, direct chat). Example: 5 or
# 3,4,5
export ICQ_LEGACY_DIRECT_CONNECTIONS=5

5 changes: 5 additions & 0 deletions docker-compose.override.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
open-oscar-server:
environment:
API_LISTENER: 0.0.0.0:8080
LOG_LEVEL: trace
Loading