Adapt to the new systemd API

This commit is contained in:
Frank Denis 2018-05-31 19:58:33 +02:00
parent 2b9816ab91
commit e747cf8704
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import (
)
func (proxy *Proxy) SystemDListeners() error {
listeners, err := activation.Listeners(false)
listeners, err := activation.Listeners()
if err == nil && len(listeners) > 0 {
for i, listener := range listeners {
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 {
for i, packetConn := range packetConns {
if packetConn != nil {