6543 b2435af9be
Add Allow-/Block-List for Migrate & Mirrors (#13610)
* add black list and white list support for migrating repositories

* fix fmt

* fix lint

* fix vendor

* fix modules.txt

* clean diff

* specify log message

* use blocklist/allowlist

* allways use lowercase to match url

* Apply allow/block

* Settings: use existing "migrations" section

* convert domains lower case

* dont store unused value

* Block private addresses for migration by default

* fix lint

* use proposed-upstream func to detect private IP addr

* a nit

* add own error for blocked migration, add tests, imprufe api

* fix test

* fix-if-localhost-is-ipv4

* rename error & error message

* rename setting options

* Apply suggestions from code review

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-11-28 19:37:58 -05:00
..
2020-10-10 20:38:09 -04:00
2020-04-05 07:20:50 +01:00
2020-10-02 23:37:53 -04:00
2019-06-12 15:41:28 -04:00
2020-10-31 01:36:46 -04:00
2020-10-31 01:36:46 -04:00
2018-11-04 22:20:00 -05:00
2019-06-12 15:41:28 -04:00
2020-10-26 12:42:27 -04:00
2020-10-02 23:37:53 -04:00
2020-10-25 17:19:06 +00:00
2020-08-27 22:47:17 -04:00
2020-04-05 07:20:50 +01:00