This repository has been archived by the owner on Jul 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Alternate configuration format from JSON to TOML.
1. Alternate configuration format from JSON to TOML. 2. Support both ipv4 and ipv6 in configuration file 'static.toml'. 3. If file 'static.toml' not exist, regard it as a empty file.
- Loading branch information
Showing
7 changed files
with
109 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8"> | ||
<output url="file://$MODULE_DIR$/target/classes" /> | ||
<output-test url="file://$MODULE_DIR$/target/test-classes" /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> | ||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> | ||
<excludeFolder url="file://$MODULE_DIR$/target" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="library" name="Maven: dnsjava:dnsjava:2.1.8" level="project" /> | ||
<orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.0" level="project" /> | ||
<orderEntry type="library" name="Maven: com.moandjiezana.toml:toml4j:0.7.1" level="project" /> | ||
<orderEntry type="library" name="Maven: com.squareup.okhttp3:okhttp:3.7.0" level="project" /> | ||
<orderEntry type="library" name="Maven: com.squareup.okio:okio:1.12.0" level="project" /> | ||
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.9.Final" level="project" /> | ||
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.9.Final" level="project" /> | ||
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.9.Final" level="project" /> | ||
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.9.Final" level="project" /> | ||
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.9.Final" level="project" /> | ||
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.9.Final" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" /> | ||
</component> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[[ipv4]] | ||
# example ipv4 | ||
pattern = '''www\.example\.com''' | ||
address = '127.0.0.1' | ||
|
||
[[ipv4]] | ||
pattern = '''www\.google\.com''' | ||
address = '172.217.27.132' | ||
|
||
|
||
[[ipv6]] | ||
# example ipv6 | ||
pattern = '''www\.example\.com''' | ||
address = '::1' | ||
|
||
[[ipv6]] | ||
pattern = '''www\.google\.com''' | ||
address = '2404:6800:4008:800::2004' |