Skip to content

Commit dc49a53

Browse files
committed
Default DTLS version in client example
1 parent ffd86de commit dc49a53

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ def main():
130130

131131
# DTLS connection over UDP
132132
if args.u:
133+
if args.v > 2:
134+
args.v = 1
133135
bind_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0)
134136
context = wolfssl.SSLContext(get_DTLSmethod(args.v))
135137
# SSL/TLS connection over TCP

0 commit comments

Comments
 (0)