Skip to content
Open
Show file tree
Hide file tree
Changes from 4 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
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ formatters:
settings:
goimports:
local-prefixes:
- github.com/autobrr/qui
- github.com/autobrr/netronome

linters:
enable:
Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -782,8 +782,6 @@ NETRONOME__LIBRESPEED_TIMEOUT=60 # LibreSpeed timeout (seconds)

```bash
NETRONOME__DEFAULT_PAGE=1 # Default page number
NETRONOME__DEFAULT_PAGE_SIZE=20 # Default items per page
NETRONOME__MAX_PAGE_SIZE=100 # Maximum items per page
NETRONOME__DEFAULT_TIME_RANGE=1w # Default time range for queries
NETRONOME__DEFAULT_LIMIT=20 # Default query limit
```
Expand All @@ -799,11 +797,9 @@ NETRONOME__GEOIP_ASN_DATABASE_PATH= # Path to GeoLite2-ASN.mmdb

```bash
NETRONOME__PACKETLOSS_ENABLED=true # Enable packet loss monitoring
NETRONOME__PACKETLOSS_DEFAULT_INTERVAL=3600 # Default test interval (seconds)
NETRONOME__PACKETLOSS_DEFAULT_PACKET_COUNT=10 # Packets per test
NETRONOME__PACKETLOSS_MAX_CONCURRENT_MONITORS=10 # Max concurrent monitors
NETRONOME__PACKETLOSS_PRIVILEGED_MODE=true # Use privileged ICMP mode
NETRONOME__PACKETLOSS_RESTORE_MONITORS_ON_STARTUP=false # Restore monitors on startup
NETRONOME__PACKETLOSS_MTR_ENABLE_DNS=false # Resolve hostnames in MTR output
```

### Agent Configuration
Expand All @@ -821,7 +817,6 @@ NETRONOME__AGENT_DISK_EXCLUDES= # Comma-separated paths to exclude

```bash
NETRONOME__MONITOR_ENABLED=true # Enable system monitoring
NETRONOME__MONITOR_RECONNECT_INTERVAL=30s # Agent reconnection interval
```

### Tailscale Configuration
Expand Down Expand Up @@ -850,7 +845,6 @@ NETRONOME__TAILSCALE_DISCOVERY_PREFIX= # Hostname prefix filter
# Deprecated (for backward compatibility)
NETRONOME__TAILSCALE_PREFER_HOST=false # Prefer host mode over tsnet
NETRONOME__TAILSCALE_AGENT_ENABLED=false # Enable agent mode
NETRONOME__TAILSCALE_AGENT_ACCEPT_ROUTES=true # Accept Tailscale routes
```

</details>
Expand Down
3 changes: 0 additions & 3 deletions config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,12 @@ asn_database_path = "./GeoLite2-ASN.mmdb"

[packetloss]
enabled = true
default_interval = 3600
default_packet_count = 10
max_concurrent_monitors = 10
privileged_mode = true
mtr_enable_dns = false

[monitor]
enabled = true
reconnect_interval = "30s"

[tailscale]
enabled = true
Expand Down
147 changes: 0 additions & 147 deletions docs/superpowers/plans/2026-04-09-packetloss-history-cutover.md

This file was deleted.

19 changes: 2 additions & 17 deletions internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import (
"errors"
"fmt"
"strings"

"golang.org/x/crypto/bcrypt"
)

var (
Expand All @@ -30,19 +28,6 @@ var (
// return nil
//}

func HashPassword(password string) (string, error) {
bytes, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost)
if err != nil {
return "", err
}
return string(bytes), nil
}

func CheckPassword(password, hash string) bool {
err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password))
return err == nil
}

// MemoryOnlyPrefix is used to mark tokens that should only exist in memory
const MemoryOnlyPrefix = "mem_"

Expand Down Expand Up @@ -70,9 +55,9 @@ func VerifyToken(signedToken, secret string) (string, error) {

if secret != "" {
parts := strings.Split(signedToken, ".")

var token, signature string

// Handle different token formats
if len(parts) == 2 {
// Regular signed token: token.signature
Expand Down
4 changes: 0 additions & 4 deletions internal/auth/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,6 @@ func getProviderEndpoints(ctx context.Context, client *http.Client, issuer strin
}, discovery.UserinfoURL, nil
}

func (c *OIDCConfig) AuthURL() string {
return c.OAuth2Config.AuthCodeURL("state")
}

func containsScope(scopes []string, target string) bool {
return slices.Contains(scopes, target)
}
Expand Down
10 changes: 0 additions & 10 deletions internal/broadcaster/broadcaster.go

This file was deleted.

Loading
Loading