diff options
author | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2020-01-15 22:22:19 +0100 |
---|---|---|
committer | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2020-01-15 22:22:19 +0100 |
commit | a998cf78297233efe4886ade4f9d440244836353 (patch) | |
tree | 2bcff8189bd23818bb06eb209ca4258bca01207d /build.gradle | |
parent | 97f644e3a983c6a24d26cb04b57b96a42afaa089 (diff) |
Add initial contact to self with flag
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 51a49c5..201f249 100644 --- a/build.gradle +++ b/build.gradle @@ -58,6 +58,10 @@ ext.fallbackContacts = { return System.getProperty("fallbackContacts") ?: "{\"" + zonePath() + "\":[127,0,0,1]}" } +ext.ownAddr = { + return System.getProperty("ownZone") ?: "localhost" +} + /* Possible options: RoundRobinExp @@ -147,6 +151,7 @@ task runFetcher(type: JavaExec) { args(hostname() , 1099) systemProperty 'zone_path', zonePath() systemProperty 'fallback_contacts', fallbackContacts() + systemProperty 'own_addr', ownAddr() } task runInterpreter(type: JavaExec) { |