holepunch: punch also audio ports

This commit is contained in:
Martin Piatka
2021-05-17 16:01:39 +02:00
parent ab299d8d65
commit 0abae42282
2 changed files with 80 additions and 27 deletions

View File

@@ -1250,8 +1250,8 @@ static int adjust_params(struct ug_options *opt) {
punch_c.video_rx_port = &opt->video_rx_port;
punch_c.video_tx_port = &opt->video_tx_port;
//int *audio_rx_port;
//int *audio_tx_port;
punch_c.audio_rx_port = &opt->audio.recv_port;
punch_c.audio_tx_port = &opt->audio.send_port;
punch_c.host_addr = punched_host;
punch_c.host_addr_len = sizeof(punched_host);