3 Commits
0.1 ... 0.1.1

Author SHA1 Message Date
03635184ae Now speaks IPv6, if config contains a ":" in host 2017-10-03 00:05:23 +02:00
43bac5ed2c Link to raw image 2017-10-02 13:47:12 +02:00
b6e8815bbc Added a screenshot 2017-10-02 13:31:14 +02:00
4 changed files with 11 additions and 2 deletions

View File

@ -8,6 +8,9 @@ The server awaits commands sent by the client. A command must be defined in the
## What about ding's security?
The authentication is done by an SSL Client Certificate signed by an (own generated) Certificate Authority. The scripts for generating a CA and signing a Server/Client Certificate are also in here to make it (relatively) easy. [ You need only to press enter in the most cases, type in some certificate information and entering a previously defined CA password. ]
## Pic or didn't happen
![Screenshot of CircleArt](/img/dingScreenshot.png)
[Can't read a thing?](https://raw.githubusercontent.com/Bandie/ding/master/img/dingScreenshot.png)
## Installation
In all steps please read carefully what the certification generate scripts want from you. The certificate information needn't to be true at all and can be random. They only need to be different from each other.

View File

@ -63,7 +63,10 @@ def main():
print("Please check your paths in the config file. (Have you forgotten to generate the Certificates?)", sep="", file=sys.stderr)
quit(2)
conn = context.wrap_socket(socket.socket())
if(":" in host):
conn = context.wrap_socket(socket.socket(family=socket.AF_INET6))
else:
conn = context.wrap_socket(socket.socket(family=socket.AF_INET))
try:

View File

@ -102,7 +102,10 @@ def init():
quit(2)
try:
bindsocket = socket.socket()
if(":" in host):
bindsocket = socket.socket(family=socket.AF_INET6)
else:
bindsocket = socket.socket(family=socket.AF_INET)
bindsocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
bindsocket.bind((host, port))
bindsocket.listen(5)

BIN
img/dingScreenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB