configpull

package
v2.0.0-...-dbcdbcc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package configpull fetches Xray configuration from the panel on worker startup (HMAC pairing).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartBackgroundPull

func StartBackgroundPull(panelURL, nodeAddress string, hmacKey [32]byte, mgr *xray.Manager, telemtMgr *telemt.Manager, awgMgr *amneziawg.Manager)

StartBackgroundPull retries pull-xray-config until Xray is running or the worker stops trying.

func TryPullAndApply

func TryPullAndApply(panelURL, nodeAddress string, hmacKey [32]byte, mgr *xray.Manager, telemtMgr *telemt.Manager, awgMgr *amneziawg.Manager)

TryPullAndApply requests the latest Xray JSON (and optional Telemt payloads) from the panel and applies if Xray is not running. Retries with backoff on transient errors; clears stale nodeId and retries by address after HTTP 401.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL