Fix issue #15, support auto switch app-token-proxy