Skip to content

Commit 26774b3

Browse files
committed
[+] AddRule [+]
1 parent 93808d2 commit 26774b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/tcpserver/tcpserver.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ type TCPServer struct {
2222
func New(options *Options) (*TCPServer, error) {
2323
return &TCPServer{options: options}, nil
2424
}
25+
26+
func (t *TCPServer) AddRule(rule Rule) error {
27+
t.options.rules = append(t.options.rules, rule)
28+
return nil
29+
}

0 commit comments

Comments
 (0)