Adapt to the new systemd API
This commit is contained in:
parent
2b9816ab91
commit
e747cf8704
|
@ -9,7 +9,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func (proxy *Proxy) SystemDListeners() error {
|
func (proxy *Proxy) SystemDListeners() error {
|
||||||
listeners, err := activation.Listeners(false)
|
listeners, err := activation.Listeners()
|
||||||
if err == nil && len(listeners) > 0 {
|
if err == nil && len(listeners) > 0 {
|
||||||
for i, listener := range listeners {
|
for i, listener := range listeners {
|
||||||
if listener != nil {
|
if listener != nil {
|
||||||
|
@ -18,7 +18,7 @@ func (proxy *Proxy) SystemDListeners() error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
packetConns, err := activation.PacketConns(false)
|
packetConns, err := activation.PacketConns()
|
||||||
if err == nil && len(packetConns) > 0 {
|
if err == nil && len(packetConns) > 0 {
|
||||||
for i, packetConn := range packetConns {
|
for i, packetConn := range packetConns {
|
||||||
if packetConn != nil {
|
if packetConn != nil {
|
||||||
|
|
Loading…
Reference in New Issue