Skip to content

Commit

Permalink
Merge pull request #132 from Suwayomi/main
Browse files Browse the repository at this point in the history
fix ipv6 resolvers
  • Loading branch information
Robonau authored Jan 17, 2024
2 parents 22f906d + 0ce8b2a commit 4bbc197
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
10 changes: 2 additions & 8 deletions set-env-variable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
# exec "$@"

TMP=$(echo "$suwayomi" | sed "s@/\$@@")
TMP2=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {print $2}' /etc/resolv.conf)
regex='^([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}$'
if [[ $TMP2 =~ $regex ]]; then
sed -i "s@resolverPLACEHOLDER@[$TMP2]@" /etc/nginx/conf.d/default.conf
else
sed -i "s@resolverPLACEHOLDER@$TMP2@" /etc/nginx/conf.d/default.conf
fi

TMP2=$(awk '$1=="nameserver" && $2~/^((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])\.?){4}$/ {print $2}' /etc/resolv.conf)
sed -i "s@resolverPLACEHOLDER@$TMP2@" /etc/nginx/conf.d/default.conf
sed -i "s@PLACEHOLDER@$TMP@" /etc/nginx/conf.d/default.conf
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({
// @ts-expect-error Type 'Promise<Plugin<any>[]>' is not assignable to type 'PluginOption'
plugins: [sveltekit(), purgeCss()],
server: {
proxy: {
Expand Down

0 comments on commit 4bbc197

Please sign in to comment.