P2pProxy: simplify logic on action determination