mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-19 14:45:41 +00:00
20 lines
254 B
Go
20 lines
254 B
Go
package netns
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/sagernet/sing-box/adapter"
|
|
)
|
|
|
|
var _ adapter.NetworkNamespaceManager = (*Manager)(nil)
|
|
|
|
func Hold() {
|
|
buffer := make([]byte, 1)
|
|
for {
|
|
_, err := os.Stdin.Read(buffer)
|
|
if err != nil {
|
|
os.Exit(0)
|
|
}
|
|
}
|
|
}
|