From f6d85eaf1c969bfc10d70d57c43328588d69fde1 Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Wed, 8 Mar 2023 19:48:50 -0500 Subject: pkg/api/api0, pkg/atlas: Use new nspkt package --- pkg/api/api0/api.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/api/api0/api.go') diff --git a/pkg/api/api0/api.go b/pkg/api/api0/api.go index 1c665f9..2e3593c 100644 --- a/pkg/api/api0/api.go +++ b/pkg/api/api0/api.go @@ -29,6 +29,7 @@ import ( "github.com/pg9182/ip2x" "github.com/r2northstar/atlas/pkg/eax" "github.com/r2northstar/atlas/pkg/metricsx" + "github.com/r2northstar/atlas/pkg/nspkt" "github.com/r2northstar/atlas/pkg/origin" "github.com/rs/zerolog/hlog" "golang.org/x/mod/semver" @@ -45,6 +46,9 @@ type Handler struct { // PdataStorage stores player data. It must be non-nil. PdataStorage PdataStorage + // NSPkt handles connectionless packets. It must be non-nil. + NSPkt *nspkt.Listener + // UsernameSource configures the source to use for usernames. UsernameSource UsernameSource -- cgit v1.2.3