streamd: serve start/stop/update, streamd.yaml, egress, module panel fixes
- Add streamd serve start|stop|restart|status|update with auto-written streamd.yaml - Panel modules: STREAMD_MODULES_DIR for describe, YAML channel fallback, textarea value fix - Per-stream WireGuard/SOCKS egress profiles + Settings UI - Drop drm-* from release builds; track streamd-bg.sh / streamd-update.sh wrappers - Docs: streamd-server-setup lifecycle and update flow
This commit is contained in:
parent
da8e1123ec
commit
8fc7e4c0b8
57 changed files with 4031 additions and 257 deletions
|
|
@ -41,7 +41,8 @@ type Stream struct {
|
|||
MPD string `json:"mpd"`
|
||||
Key string `json:"key"`
|
||||
HeadersJSON string `json:"headers_json"`
|
||||
Proxy string `json:"proxy"` // socks5:// or http:// for origin fetch (NRE)
|
||||
Proxy string `json:"proxy"` // socks5:// or http:// for origin fetch (NRE)
|
||||
Egress string `json:"egress"` // named egress profile (wireguard/socks); used when Proxy empty
|
||||
VideoSelect string `json:"video_select"`
|
||||
AudioSelect string `json:"audio_select"`
|
||||
Enabled bool `json:"enabled"`
|
||||
|
|
@ -81,6 +82,7 @@ type Stream struct {
|
|||
HasKey bool `json:"has_key"`
|
||||
HasHeaders bool `json:"has_headers"`
|
||||
HasProxy bool `json:"has_proxy"`
|
||||
HasEgress bool `json:"has_egress"`
|
||||
KeyValid bool `json:"key_valid"`
|
||||
// DRMRequired is DRMMode resolved: whether this stream needs keys at all.
|
||||
DRMRequired bool `json:"drm_required"`
|
||||
|
|
@ -103,6 +105,7 @@ type CreateStream struct {
|
|||
Key string `json:"key"`
|
||||
HeadersJSON string `json:"headers_json"`
|
||||
Proxy string `json:"proxy"`
|
||||
Egress string `json:"egress"`
|
||||
VideoSelect string `json:"video_select"`
|
||||
AudioSelect string `json:"audio_select"`
|
||||
Rewriter string `json:"rewriter"`
|
||||
|
|
@ -128,6 +131,7 @@ type PatchStream struct {
|
|||
Key *string `json:"key"`
|
||||
HeadersJSON *string `json:"headers_json"`
|
||||
Proxy *string `json:"proxy"`
|
||||
Egress *string `json:"egress"`
|
||||
VideoSelect *string `json:"video_select"`
|
||||
AudioSelect *string `json:"audio_select"`
|
||||
Rewriter *string `json:"rewriter"`
|
||||
|
|
@ -230,6 +234,7 @@ CREATE TABLE IF NOT EXISTS agent_claims (
|
|||
`ALTER TABLE streams ADD COLUMN on_demand INTEGER NOT NULL DEFAULT 0`,
|
||||
`ALTER TABLE streams ADD COLUMN idle_timeout_s INTEGER NOT NULL DEFAULT 300`,
|
||||
`ALTER TABLE streams ADD COLUMN public INTEGER NOT NULL DEFAULT 1`,
|
||||
`ALTER TABLE streams ADD COLUMN egress TEXT NOT NULL DEFAULT ''`,
|
||||
} {
|
||||
_, _ = s.DB.Exec(stmt)
|
||||
}
|
||||
|
|
@ -239,7 +244,10 @@ CREATE TABLE IF NOT EXISTS agent_claims (
|
|||
if err := s.migrateSettings(); err != nil {
|
||||
return err
|
||||
}
|
||||
return s.migrateSchedules()
|
||||
if err := s.migrateSchedules(); err != nil {
|
||||
return err
|
||||
}
|
||||
return s.migrateEgress()
|
||||
}
|
||||
|
||||
func now() string {
|
||||
|
|
@ -264,10 +272,13 @@ func slug(name string) string {
|
|||
return out
|
||||
}
|
||||
|
||||
// Slug normalises a name the same way stream and egress profile names are stored.
|
||||
func Slug(name string) string { return slug(name) }
|
||||
|
||||
const streamSelect = `
|
||||
SELECT s.id, s.name, s.title, COALESCE(s.description,''), COALESCE(s.tags,''),
|
||||
s.app, s.channel, s.mpd, s.key_kid_key, s.headers_json,
|
||||
COALESCE(s.proxy,''), s.video_select, s.audio_select, s.enabled, s.rewriter,
|
||||
COALESCE(s.proxy,''), COALESCE(s.egress,''), s.video_select, s.audio_select, s.enabled, s.rewriter,
|
||||
COALESCE(s.variants_json,''), COALESCE(s.outputs_json,''), COALESCE(s.settings_json,''),
|
||||
COALESCE(s.drm_mode,'auto'), COALESCE(s.on_demand,0),
|
||||
COALESCE(s.idle_timeout_s,300), COALESCE(s.public,1),
|
||||
|
|
@ -318,7 +329,7 @@ func scanStream(row rowScanner) (Stream, error) {
|
|||
err := row.Scan(
|
||||
&st.ID, &st.Name, &st.Title, &st.Description, &st.Tags,
|
||||
&st.App, &st.Channel, &st.MPD, &st.Key, &st.HeadersJSON,
|
||||
&st.Proxy, &st.VideoSelect, &st.AudioSelect, &enabled, &st.Rewriter,
|
||||
&st.Proxy, &st.Egress, &st.VideoSelect, &st.AudioSelect, &enabled, &st.Rewriter,
|
||||
&st.VariantsJSON, &st.OutputsJSON, &st.SettingsJSON,
|
||||
&st.DRMMode, &onDemand, &st.IdleTimeoutS, &public,
|
||||
&st.CreatedAt, &st.UpdatedAt,
|
||||
|
|
@ -361,6 +372,7 @@ func (st *Stream) fillDerived() {
|
|||
hdr := strings.TrimSpace(st.HeadersJSON)
|
||||
st.HasHeaders = hdr != "" && hdr != "{}" && hdr != "null"
|
||||
st.HasProxy = strings.TrimSpace(st.Proxy) != ""
|
||||
st.HasEgress = strings.TrimSpace(st.Egress) != ""
|
||||
switch strings.ToLower(strings.TrimSpace(st.DRMMode)) {
|
||||
case DRMYes:
|
||||
st.DRMRequired = true
|
||||
|
|
@ -557,12 +569,13 @@ func (s *Store) CreateStream(in CreateStream) (Stream, error) {
|
|||
}
|
||||
ts := now()
|
||||
res, err := s.DB.Exec(`
|
||||
INSERT INTO streams(name,title,description,tags,app,channel,mpd,key_kid_key,headers_json,proxy,
|
||||
INSERT INTO streams(name,title,description,tags,app,channel,mpd,key_kid_key,headers_json,proxy,egress,
|
||||
video_select,audio_select,enabled,rewriter,variants_json,outputs_json,
|
||||
settings_json,drm_mode,on_demand,idle_timeout_s,public,created_at,updated_at)
|
||||
VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)`,
|
||||
VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)`,
|
||||
name, in.Title, strings.TrimSpace(in.Description), normalizeTags(in.Tags),
|
||||
in.App, in.Channel, in.MPD, in.Key, in.HeadersJSON, strings.TrimSpace(in.Proxy),
|
||||
slug(strings.TrimSpace(in.Egress)),
|
||||
in.VideoSelect, in.AudioSelect, enabled, in.Rewriter, variantsJSON, outputsJSON,
|
||||
settingsJSON, normalizeDRMMode(in.DRMMode), onDemand, idle, public, ts, ts)
|
||||
if err != nil {
|
||||
|
|
@ -654,6 +667,9 @@ func (s *Store) PatchStream(id int64, in PatchStream) (Stream, error) {
|
|||
if in.Proxy != nil {
|
||||
cur.Proxy = strings.TrimSpace(*in.Proxy)
|
||||
}
|
||||
if in.Egress != nil {
|
||||
cur.Egress = slug(strings.TrimSpace(*in.Egress))
|
||||
}
|
||||
if in.VideoSelect != nil {
|
||||
cur.VideoSelect = *in.VideoSelect
|
||||
}
|
||||
|
|
@ -730,11 +746,11 @@ func (s *Store) PatchStream(id int64, in PatchStream) (Stream, error) {
|
|||
ts := now()
|
||||
_, err = s.DB.Exec(`
|
||||
UPDATE streams SET title=?, description=?, tags=?, app=?, channel=?, mpd=?, key_kid_key=?,
|
||||
headers_json=?, proxy=?, video_select=?, audio_select=?, enabled=?, rewriter=?,
|
||||
headers_json=?, proxy=?, egress=?, video_select=?, audio_select=?, enabled=?, rewriter=?,
|
||||
variants_json=?, outputs_json=?, settings_json=?, drm_mode=?, on_demand=?,
|
||||
idle_timeout_s=?, public=?, updated_at=? WHERE id=?`,
|
||||
cur.Title, cur.Description, cur.Tags, cur.App, cur.Channel, cur.MPD, cur.Key,
|
||||
cur.HeadersJSON, cur.Proxy, cur.VideoSelect, cur.AudioSelect, enabled, cur.Rewriter,
|
||||
cur.HeadersJSON, cur.Proxy, cur.Egress, cur.VideoSelect, cur.AudioSelect, enabled, cur.Rewriter,
|
||||
cur.VariantsJSON, cur.OutputsJSON, cur.SettingsJSON, cur.DRMMode, onDemand,
|
||||
cur.IdleTimeoutS, public, ts, id)
|
||||
if err != nil {
|
||||
|
|
|
|||
226
apps/streamd/internal/db/egress.go
Normal file
226
apps/streamd/internal/db/egress.go
Normal file
|
|
@ -0,0 +1,226 @@
|
|||
package db
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const (
|
||||
EgressKindWireGuard = "wireguard"
|
||||
EgressKindSocks = "socks"
|
||||
|
||||
EgressStopped = "stopped"
|
||||
EgressStarting = "starting"
|
||||
EgressUp = "up"
|
||||
EgressDown = "down"
|
||||
EgressError = "error"
|
||||
)
|
||||
|
||||
// EgressProfile is a named origin-egress path (WireGuard netns or plain SOCKS).
|
||||
// Conf blobs live on disk under data/egress/<name>/; never in this table.
|
||||
type EgressProfile struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Kind string `json:"kind"`
|
||||
Enabled bool `json:"enabled"`
|
||||
ListenPort int `json:"listen_port"`
|
||||
SocksURL string `json:"socks_url,omitempty"`
|
||||
Status string `json:"status"`
|
||||
LastError string `json:"last_error,omitempty"`
|
||||
EgressIP string `json:"egress_ip,omitempty"`
|
||||
HasConf bool `json:"has_conf"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
|
||||
func (s *Store) migrateEgress() error {
|
||||
_, err := s.DB.Exec(`
|
||||
CREATE TABLE IF NOT EXISTS egress_profiles (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
name TEXT NOT NULL UNIQUE,
|
||||
kind TEXT NOT NULL DEFAULT 'wireguard',
|
||||
enabled INTEGER NOT NULL DEFAULT 0,
|
||||
listen_port INTEGER NOT NULL DEFAULT 0,
|
||||
socks_url TEXT NOT NULL DEFAULT '',
|
||||
status TEXT NOT NULL DEFAULT 'stopped',
|
||||
last_error TEXT NOT NULL DEFAULT '',
|
||||
egress_ip TEXT NOT NULL DEFAULT '',
|
||||
created_at TEXT NOT NULL,
|
||||
updated_at TEXT NOT NULL
|
||||
);
|
||||
`)
|
||||
return err
|
||||
}
|
||||
|
||||
type CreateEgressProfile struct {
|
||||
Name string `json:"name"`
|
||||
Kind string `json:"kind"`
|
||||
Enabled *bool `json:"enabled"`
|
||||
SocksURL string `json:"socks_url"`
|
||||
}
|
||||
|
||||
type UpdateEgressProfile struct {
|
||||
Enabled *bool `json:"enabled"`
|
||||
SocksURL *string `json:"socks_url"`
|
||||
Kind *string `json:"kind"`
|
||||
}
|
||||
|
||||
func normalizeEgressKind(k string) (string, error) {
|
||||
switch strings.ToLower(strings.TrimSpace(k)) {
|
||||
case "", EgressKindWireGuard:
|
||||
return EgressKindWireGuard, nil
|
||||
case EgressKindSocks:
|
||||
return EgressKindSocks, nil
|
||||
default:
|
||||
return "", fmt.Errorf("kind must be %q or %q", EgressKindWireGuard, EgressKindSocks)
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Store) ListEgressProfiles() ([]EgressProfile, error) {
|
||||
rows, err := s.DB.Query(`
|
||||
SELECT id, name, kind, enabled, listen_port, socks_url, status, last_error, egress_ip, created_at, updated_at
|
||||
FROM egress_profiles ORDER BY name`)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer rows.Close()
|
||||
var out []EgressProfile
|
||||
for rows.Next() {
|
||||
p, err := scanEgress(rows)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
out = append(out, p)
|
||||
}
|
||||
if out == nil {
|
||||
out = []EgressProfile{}
|
||||
}
|
||||
return out, rows.Err()
|
||||
}
|
||||
|
||||
func (s *Store) GetEgressProfile(id int64) (EgressProfile, error) {
|
||||
row := s.DB.QueryRow(`
|
||||
SELECT id, name, kind, enabled, listen_port, socks_url, status, last_error, egress_ip, created_at, updated_at
|
||||
FROM egress_profiles WHERE id=?`, id)
|
||||
return scanEgress(row)
|
||||
}
|
||||
|
||||
func (s *Store) GetEgressProfileByName(name string) (EgressProfile, error) {
|
||||
name = slug(name)
|
||||
if name == "" {
|
||||
return EgressProfile{}, fmt.Errorf("name required")
|
||||
}
|
||||
row := s.DB.QueryRow(`
|
||||
SELECT id, name, kind, enabled, listen_port, socks_url, status, last_error, egress_ip, created_at, updated_at
|
||||
FROM egress_profiles WHERE name=?`, name)
|
||||
return scanEgress(row)
|
||||
}
|
||||
|
||||
func scanEgress(row rowScanner) (EgressProfile, error) {
|
||||
var p EgressProfile
|
||||
var enabled int
|
||||
err := row.Scan(
|
||||
&p.ID, &p.Name, &p.Kind, &enabled, &p.ListenPort, &p.SocksURL,
|
||||
&p.Status, &p.LastError, &p.EgressIP, &p.CreatedAt, &p.UpdatedAt,
|
||||
)
|
||||
if err != nil {
|
||||
return p, err
|
||||
}
|
||||
p.Enabled = enabled != 0
|
||||
if p.Status == "" {
|
||||
p.Status = EgressStopped
|
||||
}
|
||||
return p, nil
|
||||
}
|
||||
|
||||
func (s *Store) CreateEgressProfile(in CreateEgressProfile) (EgressProfile, error) {
|
||||
name := slug(in.Name)
|
||||
if name == "" {
|
||||
return EgressProfile{}, fmt.Errorf("name required (slug of letters, digits, hyphens)")
|
||||
}
|
||||
kind, err := normalizeEgressKind(in.Kind)
|
||||
if err != nil {
|
||||
return EgressProfile{}, err
|
||||
}
|
||||
socks := strings.TrimSpace(in.SocksURL)
|
||||
if kind == EgressKindSocks && socks == "" {
|
||||
return EgressProfile{}, fmt.Errorf("socks_url required for kind=socks")
|
||||
}
|
||||
enabled := 0
|
||||
if in.Enabled != nil && *in.Enabled {
|
||||
enabled = 1
|
||||
}
|
||||
ts := now()
|
||||
res, err := s.DB.Exec(`
|
||||
INSERT INTO egress_profiles(name, kind, enabled, listen_port, socks_url, status, last_error, egress_ip, created_at, updated_at)
|
||||
VALUES(?,?,?,0,?,?, '','',?,?)`,
|
||||
name, kind, enabled, socks, EgressStopped, ts, ts)
|
||||
if err != nil {
|
||||
if strings.Contains(strings.ToLower(err.Error()), "unique") {
|
||||
return EgressProfile{}, fmt.Errorf("egress profile %q already exists", name)
|
||||
}
|
||||
return EgressProfile{}, err
|
||||
}
|
||||
id, _ := res.LastInsertId()
|
||||
return s.GetEgressProfile(id)
|
||||
}
|
||||
|
||||
func (s *Store) UpdateEgressProfile(id int64, in UpdateEgressProfile) (EgressProfile, error) {
|
||||
cur, err := s.GetEgressProfile(id)
|
||||
if err != nil {
|
||||
return EgressProfile{}, err
|
||||
}
|
||||
if in.Enabled != nil {
|
||||
cur.Enabled = *in.Enabled
|
||||
}
|
||||
if in.SocksURL != nil {
|
||||
cur.SocksURL = strings.TrimSpace(*in.SocksURL)
|
||||
}
|
||||
if in.Kind != nil {
|
||||
kind, err := normalizeEgressKind(*in.Kind)
|
||||
if err != nil {
|
||||
return EgressProfile{}, err
|
||||
}
|
||||
cur.Kind = kind
|
||||
}
|
||||
if cur.Kind == EgressKindSocks && cur.SocksURL == "" {
|
||||
return EgressProfile{}, fmt.Errorf("socks_url required for kind=socks")
|
||||
}
|
||||
enabled := 0
|
||||
if cur.Enabled {
|
||||
enabled = 1
|
||||
}
|
||||
ts := now()
|
||||
_, err = s.DB.Exec(`
|
||||
UPDATE egress_profiles SET kind=?, enabled=?, socks_url=?, updated_at=? WHERE id=?`,
|
||||
cur.Kind, enabled, cur.SocksURL, ts, id)
|
||||
if err != nil {
|
||||
return EgressProfile{}, err
|
||||
}
|
||||
return s.GetEgressProfile(id)
|
||||
}
|
||||
|
||||
func (s *Store) DeleteEgressProfile(id int64) error {
|
||||
res, err := s.DB.Exec(`DELETE FROM egress_profiles WHERE id=?`, id)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
n, _ := res.RowsAffected()
|
||||
if n == 0 {
|
||||
return sql.ErrNoRows
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetEgressRuntime updates live status fields without touching config.
|
||||
func (s *Store) SetEgressRuntime(id int64, status, lastErr, egressIP string, listenPort int) error {
|
||||
status = strings.TrimSpace(status)
|
||||
if status == "" {
|
||||
status = EgressStopped
|
||||
}
|
||||
_, err := s.DB.Exec(`
|
||||
UPDATE egress_profiles SET status=?, last_error=?, egress_ip=?, listen_port=?, updated_at=? WHERE id=?`,
|
||||
status, strings.TrimSpace(lastErr), strings.TrimSpace(egressIP), listenPort, now(), id)
|
||||
return err
|
||||
}
|
||||
117
apps/streamd/internal/db/egress_test.go
Normal file
117
apps/streamd/internal/db/egress_test.go
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
package db
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestSlugValidation(t *testing.T) {
|
||||
for _, c := range []struct {
|
||||
in, want string
|
||||
}{
|
||||
{"London", "london"},
|
||||
{"dublin-1", "dublin-1"},
|
||||
{" RTE IE ", "rte-ie"},
|
||||
{"!!!", ""},
|
||||
{"Wire_Guard", "wire-guard"},
|
||||
{"a--b", "a-b"},
|
||||
} {
|
||||
if got := Slug(c.in); got != c.want {
|
||||
t.Errorf("Slug(%q) = %q want %q", c.in, got, c.want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestEgressCRUD(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
store, err := Open(filepath.Join(dir, "data"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer store.Close()
|
||||
|
||||
_, err = store.CreateEgressProfile(CreateEgressProfile{Name: "!!!"})
|
||||
if err == nil {
|
||||
t.Fatal("expected empty slug to fail")
|
||||
}
|
||||
|
||||
on := true
|
||||
p, err := store.CreateEgressProfile(CreateEgressProfile{
|
||||
Name: "London", Kind: "wireguard", Enabled: &on,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if p.Name != "london" || p.Kind != EgressKindWireGuard || !p.Enabled {
|
||||
t.Fatalf("create: %+v", p)
|
||||
}
|
||||
if p.Status != EgressStopped {
|
||||
t.Fatalf("status = %q", p.Status)
|
||||
}
|
||||
|
||||
got, err := store.GetEgressProfileByName("LONDON")
|
||||
if err != nil || got.ID != p.ID {
|
||||
t.Fatalf("GetByName: %+v %v", got, err)
|
||||
}
|
||||
|
||||
off := false
|
||||
url := "socks5://127.0.0.1:1080"
|
||||
kind := EgressKindSocks
|
||||
upd, err := store.UpdateEgressProfile(p.ID, UpdateEgressProfile{
|
||||
Enabled: &off, SocksURL: &url, Kind: &kind,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if upd.Enabled || upd.SocksURL != url || upd.Kind != EgressKindSocks {
|
||||
t.Fatalf("update: %+v", upd)
|
||||
}
|
||||
|
||||
if err := store.SetEgressRuntime(p.ID, EgressUp, "", "1.2.3.4", 18080); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
got, _ = store.GetEgressProfile(p.ID)
|
||||
if got.Status != EgressUp || got.EgressIP != "1.2.3.4" || got.ListenPort != 18080 {
|
||||
t.Fatalf("runtime: %+v", got)
|
||||
}
|
||||
|
||||
list, err := store.ListEgressProfiles()
|
||||
if err != nil || len(list) != 1 {
|
||||
t.Fatalf("list: %v %#v", err, list)
|
||||
}
|
||||
|
||||
if err := store.DeleteEgressProfile(p.ID); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, err := store.GetEgressProfile(p.ID); err == nil {
|
||||
t.Fatal("expected missing after delete")
|
||||
}
|
||||
}
|
||||
|
||||
func TestStreamEgressField(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
store, err := Open(filepath.Join(dir, "data"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer store.Close()
|
||||
|
||||
st, err := store.CreateStream(CreateStream{Name: "rte1", MPD: "https://x/a.mpd", Egress: "Dublin"})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if st.Egress != "dublin" || !st.HasEgress || st.HasProxy {
|
||||
t.Fatalf("create egress: %+v has_egress=%v has_proxy=%v", st.Egress, st.HasEgress, st.HasProxy)
|
||||
}
|
||||
|
||||
empty := ""
|
||||
london := "london"
|
||||
st, err = store.PatchStream(st.ID, PatchStream{Egress: &london})
|
||||
if err != nil || st.Egress != "london" {
|
||||
t.Fatalf("patch: %+v %v", st, err)
|
||||
}
|
||||
st, err = store.PatchStream(st.ID, PatchStream{Egress: &empty})
|
||||
if err != nil || st.HasEgress {
|
||||
t.Fatalf("clear egress: %+v %v", st, err)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue