deal with multiple gateways
Merge pull request #3 from layerssss/patch-1

deal with multiple gateways