Add ITVX module, transparent mitm_hosts, and DM Telegram announces.
All checks were successful
release / build-and-upload (push) Successful in 6m21s
All checks were successful
release / build-and-upload (push) Successful in 6m21s
Wire module mitm_hosts into StartTransparent for ITVX capture, ship the itv provider stub with Live-list autoplay, refresh the README, and send Forgejo release announces to private chat 7314901602.
This commit is contained in:
parent
3cb259c9b6
commit
2e43e6c3fa
23 changed files with 996 additions and 84 deletions
|
|
@ -25,6 +25,9 @@ type Common struct {
|
|||
CAHash string `yaml:"ca_hash"`
|
||||
Aliases map[string]string `yaml:"aliases"`
|
||||
Score capture.ScoreCfg `yaml:"score"`
|
||||
// MitmHosts are forced into transparent MITM via -mitm-host (suffix match).
|
||||
// Transparent mode otherwise passthroughs everything except open.live.bbc.co.uk.
|
||||
MitmHosts []string `yaml:"mitm_hosts"`
|
||||
}
|
||||
|
||||
// Base implements the boilerplate half of app.App.
|
||||
|
|
@ -94,6 +97,18 @@ func (b *Base) Score() capture.ScoreCfg {
|
|||
return capture.DefaultScoreCfg().Merge(b.common.Score)
|
||||
}
|
||||
|
||||
// MitmHosts returns hosts the transparent MITM must decrypt (empty = BBC open.live only).
|
||||
func (b *Base) MitmHosts() []string {
|
||||
out := make([]string, 0, len(b.common.MitmHosts))
|
||||
for _, h := range b.common.MitmHosts {
|
||||
h = strings.TrimSpace(strings.ToLower(h))
|
||||
if h != "" {
|
||||
out = append(out, h)
|
||||
}
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
// Hints returns device-layout hints with this module's scoring applied.
|
||||
func (b *Base) Hints(require ...string) capture.Hints {
|
||||
h := capture.DefaultHints()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue