Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
03635184ae | |||
43bac5ed2c | |||
b6e8815bbc |
@ -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
|
||||

|
||||
[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.
|
||||
|
@ -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:
|
||||
|
@ -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
BIN
img/dingScreenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
Reference in New Issue
Block a user