Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e9389243e69f
Choose a base ref
...
head repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1db255deafe6
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 10, 2019

  1. Copy the full SHA
    1db255d View commit details
Showing with 6 additions and 0 deletions.
  1. +6 −0 software/glasgow/applet/audio/yamaha_opl/__init__.py
6 changes: 6 additions & 0 deletions software/glasgow/applet/audio/yamaha_opl/__init__.py
Original file line number Diff line number Diff line change
@@ -637,6 +637,12 @@ async def serve(self):
web.post("/vgm", self.serve_vgm),
])

try:
from aiohttp_remotes import XForwardedRelaxed, setup as setup_remotes
await setup_remotes(app, XForwardedRelaxed())
except ImportError:
self._logger.warning("aiohttp_remotes not installed; X-Forwarded-For will not be used")

runner = web.AppRunner(app,
access_log_format='%a(%{X-Forwarded-For}i) "%r" %s "%{Referer}i" "%{User-Agent}i"')
await runner.setup()