Feature: mark on socket (#1705)
This commit is contained in:
@ -10,6 +10,7 @@ var (
|
||||
type option struct {
|
||||
interfaceName string
|
||||
addrReuse bool
|
||||
routingMark int
|
||||
}
|
||||
|
||||
type Option func(opt *option)
|
||||
@ -25,3 +26,9 @@ func WithAddrReuse(reuse bool) Option {
|
||||
opt.addrReuse = reuse
|
||||
}
|
||||
}
|
||||
|
||||
func WithRoutingMark(mark int) Option {
|
||||
return func(opt *option) {
|
||||
opt.routingMark = mark
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user