Update UPnP.cs

This is to discuss some changes that I think could worth.