hayzam 198f72814c
Some checks failed
Quality check / Static analysis (push) Has been cancelled
Quality check / Tests (push) Has been cancelled
engine: mac: more ipv6 gm
2026-02-11 13:18:34 +05:30
2026-02-11 06:27:36 +05:30
2026-02-11 06:27:36 +05:30
2026-02-11 06:27:36 +05:30
2026-02-11 13:18:34 +05:30
2026-02-11 06:27:36 +05:30
2026-02-11 06:27:36 +05:30
2026-02-11 12:04:11 +05:30
2026-02-11 06:27:36 +05:30
2026-02-11 06:27:36 +05:30
2026-02-11 06:27:36 +05:30
2026-02-11 06:27:36 +05:30
2026-02-11 06:27:36 +05:30
2026-02-11 06:27:36 +05:30
2026-02-11 06:27:36 +05:30
2026-02-11 06:27:36 +05:30
2026-02-11 06:27:36 +05:30

Mellaris

Mellaris is a Go library for network stream analysis and filtering.

Usage

package main

import (
	"context"

	"git.difuse.io/Difuse/Mellaris"
)

func main() {
	cfg := mellaris.Config{
		IO: mellaris.IOConfig{
			// QueueSize, ReadBuffer, WriteBuffer, Local, RST
		},
		Workers: mellaris.WorkersConfig{
			// Count, QueueSize, TCPMaxBufferedPagesTotal, TCPMaxBufferedPagesPerConn, UDPMaxStreams
		},
		Ruleset: mellaris.RulesetConfig{
			GeoIp:   "/path/to/geoip.dat",
			GeoSite: "/path/to/geosite.dat",
		},
	}

	app, err := mellaris.New(cfg, mellaris.Options{
		RulesFile: "rules.yaml",
		Analyzers: mellaris.DefaultAnalyzers(),
		Modifiers: mellaris.DefaultModifiers(),
	})
	if err != nil {
		panic(err)
	}
	defer app.Close()

	_ = app.Run(context.Background())
}

Based on OpenGFW by apernet: https://github.com/apernet/OpenGFW

LICENSE

MPL-2.0

Description
No description provided
Readme MPL-2.0 256 KiB
Languages
Go 100%