mirror of
https://github.com/go-i2p/go-i2ptunnel.git
synced 2025-06-17 04:26:12 -04:00
Add filtering wrapper components for http and IRC
This commit is contained in:
@ -25,6 +25,7 @@ Key features:
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
httpinspector "github.com/go-i2p/go-connfilter/http"
|
||||
i2pconv "github.com/go-i2p/go-i2ptunnel-config/lib"
|
||||
i2ptunnel "github.com/go-i2p/go-i2ptunnel/lib/core"
|
||||
"github.com/go-i2p/onramp"
|
||||
@ -39,6 +40,8 @@ type HTTPClient struct {
|
||||
i2pconv.TunnelConfig
|
||||
// The tunnel status
|
||||
i2ptunnel.I2PTunnelStatus
|
||||
// The http filtering configuration
|
||||
httpinspector.Config
|
||||
// Channel for shutdown signaling
|
||||
done chan struct{}
|
||||
|
||||
|
@ -26,6 +26,7 @@ import (
|
||||
"net"
|
||||
"strconv"
|
||||
|
||||
httpinspector "github.com/go-i2p/go-connfilter/http"
|
||||
i2pconv "github.com/go-i2p/go-i2ptunnel-config/lib"
|
||||
i2ptunnel "github.com/go-i2p/go-i2ptunnel/lib/core"
|
||||
limitedlistener "github.com/go-i2p/go-limit"
|
||||
@ -45,6 +46,8 @@ type HTTPServer struct {
|
||||
i2ptunnel.I2PTunnelStatus
|
||||
// The rate-limiting configuration
|
||||
limitedlistener.LimitedConfig
|
||||
// The http filtering configuration
|
||||
httpinspector.Config
|
||||
// Channel for shutdown signaling
|
||||
done chan struct{}
|
||||
|
||||
|
@ -15,6 +15,7 @@ The IRC Client implements a SOCKS-compatible proxy that enables local IRC client
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
ircinspector "github.com/go-i2p/go-connfilter/irc"
|
||||
i2pconv "github.com/go-i2p/go-i2ptunnel-config/lib"
|
||||
i2ptunnel "github.com/go-i2p/go-i2ptunnel/lib/core"
|
||||
"github.com/go-i2p/i2pkeys"
|
||||
@ -32,6 +33,8 @@ type IRCClient struct {
|
||||
*i2pkeys.I2PAddr
|
||||
// The tunnel status
|
||||
i2ptunnel.I2PTunnelStatus
|
||||
// The IRC filtering configuration
|
||||
ircinspector.Config
|
||||
// Channel for shutdown signaling
|
||||
done chan struct{}
|
||||
|
||||
|
@ -16,6 +16,7 @@ import (
|
||||
"net"
|
||||
"strconv"
|
||||
|
||||
ircinspector "github.com/go-i2p/go-connfilter/irc"
|
||||
i2pconv "github.com/go-i2p/go-i2ptunnel-config/lib"
|
||||
i2ptunnel "github.com/go-i2p/go-i2ptunnel/lib/core"
|
||||
limitedlistener "github.com/go-i2p/go-limit"
|
||||
@ -35,6 +36,8 @@ type IRCServer struct {
|
||||
i2ptunnel.I2PTunnelStatus
|
||||
// The rate-limiting configuration
|
||||
limitedlistener.LimitedConfig
|
||||
// The IRC filtering configuration
|
||||
ircinspector.Config
|
||||
// Channel for shutdown signaling
|
||||
done chan struct{}
|
||||
|
||||
|
Reference in New Issue
Block a user