Exemplo n.º 1
0
        public async Task <IActionResult> ChangeWanIp()
        {
            GatewayHelper.ChangeWanIp();
            if (ConfigHelper.Instance.HitWhenIpChanges.HasValue())
            {
                await _updateEndpointClient.GetAsync(ConfigHelper.Instance.HitWhenIpChanges);
            }

            _lastKnownIp = GatewayHelper.GetCurrentIp();
            return(RedirectToAction(nameof(Index)));
        }