mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-01-24 09:52:13 +08:00
freshplayerplugin tweak
This commit is contained in:
parent
25d765a731
commit
783d6803a3
@ -1,41 +0,0 @@
|
||||
From 317eda1a0f2b31be43624cf0fecfc35fdcdc99eb Mon Sep 17 00:00:00 2001
|
||||
From: Rinat Ibragimov <ibragimovrinat@mail.ru>
|
||||
Date: Sun, 18 Jan 2015 21:15:16 +0300
|
||||
Subject: [PATCH] async_network: skip resolution of already resolved addresses
|
||||
|
||||
---
|
||||
src/async_network.c | 11 +++++++++++
|
||||
1 file changed, 11 insertions(+)
|
||||
|
||||
diff --git a/src/async_network.c b/src/async_network.c
|
||||
index a9b12c6..6f879ad 100644
|
||||
--- a/src/async_network.c
|
||||
+++ b/src/async_network.c
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
+#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netdb.h>
|
||||
#include <event2/event.h>
|
||||
@@ -256,6 +257,16 @@ void
|
||||
handle_tcp_connect_stage1(struct async_network_task_s *task)
|
||||
{
|
||||
struct evdns_request *req;
|
||||
+ struct sockaddr_in sai;
|
||||
+
|
||||
+ memset(&sai, 0, sizeof(sai));
|
||||
+ if (inet_pton(AF_INET, task->host, &sai.sin_addr) == 1) {
|
||||
+ // already a valid IP address
|
||||
+ handle_tcp_connect_stage2(DNS_ERR_NONE, DNS_IPv4_A, 1, 300, &sai.sin_addr, task);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ // queue DNS request
|
||||
req = evdns_base_resolve_ipv4(evdns_b, task->host, DNS_QUERY_NO_SEARCH,
|
||||
handle_tcp_connect_stage2, task);
|
||||
// TODO: what about ipv6?
|
||||
--
|
||||
2.2.1
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
pkgname=freshplayerplugin
|
||||
pkgver=0.2.3
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='PPAPI-host NPAPI-plugin adapter.'
|
||||
arch=('x86_64')
|
||||
url='https://github.com/i-rinat/freshplayerplugin'
|
||||
@ -15,7 +15,7 @@ source=("$url/archive/v$pkgver.tar.gz"
|
||||
'freshwrapper.conf')
|
||||
backup=('etc/freshwrapper.conf')
|
||||
md5sums=('c2b2a4440a1393961f4559e3f9032256'
|
||||
'f5c37482ff9cb4c0db00e12050ed6539')
|
||||
'a0622495f3c0fc2f28cd1ea469a98051')
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
|
@ -26,7 +26,20 @@ flash_command_line = "enable_hw_video_decode=1,enable_stagevideo_auto=1"
|
||||
enable_3d = 0
|
||||
|
||||
# enable 3d for wmode=transparent instances
|
||||
enable_3d_transparent = 1
|
||||
enable_3d_transparent = 0
|
||||
|
||||
# when set to 1, limits output to warnings and errors only
|
||||
quiet = 1
|
||||
quiet = 0
|
||||
|
||||
# When multiple monitors with different resolutions are used, size
|
||||
# of fullscreen window can vary. But some Flash movies request these
|
||||
# parameters once at startup and rely on them to be correct. By default,
|
||||
# if zeros are used here, freshwrapper will select minimal width and
|
||||
# height across all monitors.
|
||||
fullscreen_width = 0
|
||||
fullscreen_height = 0
|
||||
|
||||
# Enables DNS query case randomization to partially protect against DNS
|
||||
# poisoning attacks. It was reported that some Mikrotik routers do not
|
||||
# support this trick. Set parameter to 0 if you have an affected model
|
||||
randomize_dns_case = 1
|
Loading…
Reference in New Issue
Block a user