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.
Click to show internal directories.
Click to hide internal directories.