This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add command line arguments and config.
- Loading branch information
1 parent
5c088d7
commit e37378e
Showing
6 changed files
with
175 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
|
@@ -12,3 +12,6 @@ log = "0.3" | |
env_logger = "0.3" | ||
resolve = "0.1.2" | ||
rand = "0.3" | ||
rustc-serialize = "0.3" | ||
toml = "0.1" | ||
clap = "2" |
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,7 @@ | ||
#[derive(Clone, RustcDecodable, Debug)] | ||
pub struct Config { | ||
pub bind_addr: String, | ||
pub server_addr: String, | ||
pub listen_ports: Vec<(u16, u16)>, | ||
pub use_dns: bool | ||
} |
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,32 @@ | ||
# The local interface IP to bind to. Set to 0.0.0.0 to listen on all interfaces. | ||
# | ||
# Set this to your local computer's LAN IP between your TAP adapter and the host | ||
# if you are using Dolphin without bridging. | ||
bind_addr = "192.168.150.1" | ||
|
||
# The address of the PSO server you wish to connect to. | ||
# | ||
# As of this writing (7/9/2016): | ||
# SCHTHACK = 74.59.188.106 | ||
# Sylverant = 67.222.144.120 | ||
# | ||
# These IPs are seen in the context of the host machine, not the connecting client, | ||
# so you can use 127.0.0.1 if you are running a local server. | ||
server_addr = "74.59.188.106" | ||
|
||
# The ports to listen on and map to. | ||
# | ||
# You only need to change this if you are running a PSO server locally that is | ||
# already running on these ports. | ||
# | ||
# Each pair is of the form [local, server] | ||
listen_ports = [ | ||
# Episode 3 | ||
[9103, 9103], [9003, 9003], [9203, 9203], [9002, 9002], | ||
# Episodes 1&2 | ||
[9100, 9100], [9001, 9001] | ||
] | ||
|
||
# Whether or not to run a DNS server on port 53. The server will use the same | ||
# bind address as the proxy itself. | ||
use_dns = true |