Skip to content

Commit

Permalink
fixed #122 example
Browse files Browse the repository at this point in the history
  • Loading branch information
GIC-de committed Feb 5, 2020
1 parent 8e99daa commit 72702c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys
import pyrad.packet

srv = Client(server="localhost", secret=b"Kah3choteereethiejeimaeziecumi", dict=Dictionary("dictionary"))
srv = Client(server="127.0.0.1", secret=b"Kah3choteereethiejeimaeziecumi", dict=Dictionary("dictionary"))

req = srv.CreateAuthPacket(code=pyrad.packet.AccessRequest, User_Name="wichert")

Expand Down
2 changes: 1 addition & 1 deletion example/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def HandleDisconnectPacket(self, pkt):

# add clients (address, secret, name)
srv.hosts["127.0.0.1"] = server.RemoteHost("127.0.0.1", b"Kah3choteereethiejeimaeziecumi", "localhost")
srv.BindToAddress("")
srv.BindToAddress("0.0.0.0")

# start server
srv.Run()

0 comments on commit 72702c3

Please sign in to comment.